haskell - How can I quickly and easily configure GHC integration for Emacs? -
in past i've tried more ide experience while developing haskell in emacs, i've stumbled on not quite working integration.
is there way basic ghc-powered features (e.g. type of identifier or instant compile using flymake) works*. works mean integrates rest of ecosystem (e.g. haskell-mode, cabal)?
* works here means: requires basic configuration in init.el , perhaps installing package hackage.
for inline error checking, hdevtools best i've found. it's background server running ghc in order speed analyzing programs.
it's easy install: need 1 haskell package:
cabal install hdevtools
and 2 emacs packages, both through m-x list-packages
: flycheck
, flycheck-hdevtools
.
once it's installed, need enable m-x global-flycheck-mode
(which can put in .emacs
.) can go next error c-x `
. want change error , warning faces, can m-x customize-group flycheck-faces
.
unfortunately, emacs mode only errors , warnings (including hlint); not expose retrieving type of identifier, believe hdevtools
supports. gives me random parse errors when confronted unicode variable names or extensions; however, if ignore them, else works. should file bug report or something.
Comments
Post a Comment