knupfer / haskell-emacs

Write Emacs extensions in Haskell
376 stars 22 forks source link

improve parsing of functions to export #15

Closed knupfer closed 8 years ago

knupfer commented 9 years ago

At the moment, only functions from modules will be considered which are exported explicitly, and these functions are in an unelegant way (simply using functions like unwords and co on the sourcecode as a string).

A way forward would be using something like ghc or th to inspect the module.

knupfer commented 9 years ago

the same is true for documentation

ExternalReality commented 9 years ago

https://github.com/knupfer/haskell-emacs/pull/19

Will exports all functions when export list is omitted. Will only capture the exports relevant to haskell-emacs (funtions names).

I am not sure what to do about module exports -- it should probably recurse into the module and capture that modules function names.

knupfer commented 8 years ago

this is fixed, for the docs I open a new issue