[Haskell-cafe] Language.Haskell.Parser and literate Haskell source

Vasyl Pasternak vasyl.pasternak at gmail.com
Mon Apr 13 19:58:45 EDT 2009


I suspected that haskell-src-exts should have this function, but it
was  undocumented :)

Thank you for the tip.

Best regards,

2009/4/14 Niklas Broberg <niklas.broberg at gmail.com>:
>> Are there ability to parse literate haskell source with
>> Language.Haskell.Parser, or maybe
>> there is some tool, which converts .lhs files to .hs ?
> Use the haskell-src-exts package instead of haskell-src. The function
> parseFile in Language.Haskell.Exts will de-literate the file for you
> if the suffix is .lhs.
> Cheers,
> /Niklas

More information about the Haskell-Cafe mailing list