Literate config. See <a href="../"></a> for a better-formatted version
Log | Files | Refs

commit 89941dabf83de2665338f73dc3e1b1269ca8c571
parent 1f256dc86ba198614e4d90cc0ff6caebd4ed5090
Author: Crazazy <>
Date:   Wed, 27 Apr 2022 10:03:20 +0200

make sure to init the haskell env when haskell needs to load

Diffstat: | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/ b/ @@ -430,20 +430,21 @@ Also, if you just stumbled accross this at random, there is an easy tangle butto I have to use haskell in my new module, so there is now some haskell infra for that first we have to set up a nix environment for our haskell tools #+begin_src emacs-lisp :tangle emacsconfig/haskell.el - (setq haskell-env (nix-env-from-packages "Haskell" - "ghc" - "cabal-install" - "haskellPackages.fourmolu")) #+end_src Then haskell-mode setup, which integrates company mode as well as the sandbox #+begin_src emacs-lisp :tangle emacsconfig/haskell.el (use-package haskell-mode + :mode "\\.hs\\'" :after nix-sandbox :hook (haskell-mode . set-haskell-company-backends) (haskell-mode . company-mode) (haskell-mode . haskell-indentation-mode) :config + (setq haskell-env (nix-env-from-packages "Haskell" + "ghc" + "cabal-install" + "haskellPackages.fourmolu")) (setq haskell-process-wrapper-function (lambda (args) (cons