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

Vasyl Pasternak vasyl.pasternak at gmail.com
Mon Apr 13 19:55:03 EDT 2009


Jason,

Thank you for your answer. I haven't found unliterate capability in GHC, but I
found unlit function in Distribution.Simple.PreProcess.Unlit, which do the
things I needed.

Best regards,
Vasyl

2009/4/14 Jason Dagit <dagit at codersbase.com>:
> On Mon, Apr 13, 2009 at 3:37 PM, Vasyl Pasternak
> <vasyl.pasternak at gmail.com> wrote:
>> Hello,
>>
>> Are there ability to parse literate haskell source with
>> Language.Haskell.Parser, or maybe
>> there is some tool, which converts .lhs files to .hs ?
>
> You can ask GHC to remove the literate bits.  I think the command is
> called 'unlit' but check the GHC manual to be sure.
>
> Jason
>


More information about the Haskell-Cafe mailing list