While “they” claim a [[https://www.haskell.org/tutorial/][Gentle Introduction]], it doesn’t look /fun/. I bought the book, [[http://learnyouahaskell.com/chapters][Learn You a Haskell for Great Good!]], which looks better. Before an /Emacsian/ can dive into a new language, one needs to get an Emacs environment working.
First, get it installed. On a Mac, do something like:
#+begin_src sh
brew install haskell-stack
#+end_src
Which installs the [[https://docs.haskellstack.org/][Haskell Stack]] project that is basically an interface to the /kitchen sink/.
And then run:
#+begin_src sh
stack setup
#+end_src
And then you get access to an interactive session in a virtual environment with:
#+begin_src sh
stack ghci
#+end_src
* Haskell Mode
Seems that the venerable [[https://github.com/haskell/haskell-mode][haskell-mode]] is the best.
#+begin_src emacs-lisp
(use-package haskell-mode
:custom
(haskell-process-type 'stack-ghci))
#+end_src
See [[https://input-output-hk.github.io/adrestia/resources/Emacs][this configuration]] for some advanced features.
The [[https://github.com/mihaimaruseac/hindent][hindent package]] looks interesting: