2 ms·
(shameless plug) If you're into alpha code, you should check out my hie [1] (haskell-in-emacs). When I wrote it, ghc-mod and scion only supported show-type-at-p
by chrismonsanto 14y ago
(shameless plug) If you're into alpha code, you should check out my hie [1] (haskell-in-emacs). When I wrote it, ghc-mod and scion only supported show-type-at-point when the file typechecks, which is more or less useless when refactoring. Pretty sure that is still the case.
hie actually parses the file (using a modified version of haskell-src-exts to support more extensions), and gives show-type-at-point, goto definition, and auto complete with inline haddock documentation. Its autocomplete is context sensitive--for instance, if you type "import " you will only see modules. It also works somewhat incrementally and on-the-fly. YMMV, and it isn't documented well, but I use it every day and haven't had any problems.
If you want to try it out, you'll probably need Emacs 24. It might work on Emacs 23. Use hie-fetch.py to fetch the source for all of the packages you have installed, and "hie-hackage.py cachedir" to pre-cache your libs. First time import of Prelude will be slow, but afterwards should be instantaneous.
If you have problems the code is pretty self-explanatory IMO, but feel free to e-mail me (addr in the .el file) with comments and concerns.
[1]: https://github.com/monsanto/hie https://github.com/monsanto/hie
- tikhonj 14y agoThat looks really nice--I'll have to try it soon. I like your commit messages there, coincidentally :P.