Set-up for Haskell literate programming in emacs

Add Haskell to org-babel languages list

(org-babel-do-load-languages
  'org-babel-load-languages '(
    (haskell . t)
    (python . t)
  )
)

Haskell mode config

(use-package haskell-mode
  :ensure t
  :mode "\\.hs\\'"
  :hook (haskell-mode . turn-on-haskell-indent))

There is additional set-up that can be done to make emacs use stack instead of using the system default GHC. But I don’t need it at this point. I don’t know how to do that.


Links to this note