[Haskell-cafe] Literate Haskell source files. How do I turn them into something I can read?

Neil Mitchell ndmitchell at gmail.com
Sat Dec 30 06:27:31 EST 2006


Hi Michael,

cpphs is the answer: http://www.cs.york.ac.uk/fp/cpphs/

It has a --unlit mode, and if one of the other flags doesn't remove the
various forms of line dropping, I'm sure if you posted what you need doing,
contacted the author or submitted a patch that someone would be able to do
it. It's something that should exist.

Thanks

Neil


On 12/30/06, Michael T. Richter <ttmrichter at gmail.com> wrote:
>
>  I'm trying to wrap my mind around the darcs source code as a preliminary
> to looking into GHC's guts.  All of darcs is written as .lhs files which
> have bizarre mark-up in them which distracts me from the actual Haskell
> source I'm trying to figure out and get used to.  Apparently the GHC
> compiler can take .lhs files, strip them with "unlit" (a utility which I
> finally found buried deep in the GHC installation -- off-path) and then
> compile them normally.  The problem I have is that unlit leaves behind
> instead these huge gaping (and highly distracting) stretches of whitespace
> while it takes out the markup.
>
> Are there any tools which I can use to render .lhs files readable?  I'm
> fine with having them converted into documented source (i.e. source code
> embedded in documentation) or as pure Haskell source (but without the huge
> whitespace gaps) -- but I can't figure out how to get either.
>
>   --
> *Michael T. Richter*
> *Email:* ttmrichter at gmail.com, mtr1966 at hotpop.com
> *MSN:* ttmrichter at hotmail.com, mtr1966 at hotmail.com; *YIM:*michael_richter_1966;
> *AIM:* YanJiahua1966; *ICQ:* 241960658; *Jabber:* mtr1966 at jabber.cn
>
> *"I think it is very beautiful for the poor to accept their lot [...]. I
> think the world is being much helped by the suffering of the poor people."
> * *--Mother Theresa*
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20061230/70d4890f/attachment.htm


More information about the Haskell-Cafe mailing list