[Haskell-cafe] Query information about a haskell source file from the command-line

Adam Bergmark adam at bergmark.nl
Thu Nov 28 18:51:39 UTC 2013


Hi Thiago,

you can easily do this with haskell-src-exts + haskell-names, for instance:


([exports],_) <- HN.getInterfaces Haskell2010 extensions [hseModule]

HTH
- Adam



On Thu, Nov 28, 2013 at 7:30 PM, Thiago Padilha <tpadilha84 at gmail.com>wrote:

> Is there any command-line tool that outputs information about a source
> haskell module? I'm looking for something like 'ghc-mod browse'(which
> displays all symbols exported by an installed module) but that works
> for plain haskell source files.
>
> Any ideas?
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20131128/d0defc0c/attachment.html>


More information about the Haskell-Cafe mailing list