
13 Apr
2009
13 Apr
'09
7:58 p.m.
Niklas,
I suspected that haskell-src-exts should have this function, but it
was undocumented :)
Thank you for the tip.
Best regards,
Vasyl
2009/4/14 Niklas Broberg
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