HPath is a command line utility to grab the Haskell source
for a given identifier:
:; dist/build/hpath/hpath HPath.Path.parse 2>/dev/null
parse :: String -> Either ParseError Path
parse s = Text.ParserCombinators.Parsec.parse (qualified []) s s
This is an alpha release. There are many things HPath can't
retrieve -- like constructors -- and there seem to be some
complications with the underlying parser/pretty printer (some
times you get far too many newlines).
There will be another release when the newline issue is
resolved. The hope is to release HPath in conjunction with
LaTeX macros to allow easy inclusion of Haskell in elaborate
documents.
--
Jason Dusek