A set of Haskell snippets to use with yasnippet.
-
Clone the repo into e.g.
~/emacs.d/mysnippets/haskell-mode. -
Tell yasnippet about the snippets, by adding them to your
init.elfile.;; Tell yasnippet where it can find the Haskell snippets (setq yas/root-directory "~/emacs.d/mysnippets/haskell-mode") ;; Load the snippets (yas/load-directory yas/root-directory)
In a Haskell source file, with haskell-mode loaded, type e.g. imp
and press tab.