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 <[EMAIL PROTECTED]> 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:* [EMAIL PROTECTED], [EMAIL PROTECTED]
*MSN:* [EMAIL PROTECTED], [EMAIL PROTECTED]; *YIM:*michael_richter_1966;
*AIM:* YanJiahua1966; *ICQ:* 241960658; *Jabber:* [EMAIL PROTECTED]

*"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@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe




_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to