[Haskell-cafe] Coding conventions for Haskell?

Christopher Done chrisdone at googlemail.com
Thu Sep 30 10:02:22 EDT 2010


FWIW, I align all my module imports up, as seen here:
http://github.com/chrisdone/amelie/raw/master/src/Web/Codepad.hs  and
here http://github.com/chrisdone/amelie/raw/master/src/Amelie/HTML.hs
etc.

I use the following Emacs library to do it for me:
http://github.com/chrisdone/haskell-mode-exts/raw/master//haskell-align-imports.el

I also sort them with this:
http://github.com/chrisdone/haskell-mode-exts/blob/master//haskell-sort-imports.el
but it only works for one-line imports, which I advocate anyway.


More information about the Haskell-Cafe mailing list