Query information about a haskell source file from the command-line

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?

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
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@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Seems promising, thanks
On Thu, Nov 28, 2013 at 3:51 PM, Adam Bergmark
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
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@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (2)
-
Adam Bergmark
-
Thiago Padilha