Hi Michael,<br><br>cpphs is the answer: <a href="http://www.cs.york.ac.uk/fp/cpphs/">http://www.cs.york.ac.uk/fp/cpphs/</a><br><br>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.
<br><br>Thanks<br><br>Neil<br><br><br><div><span class="gmail_quote">On 12/30/06, <b class="gmail_sendername">Michael T. Richter</b> <<a href="mailto:ttmrichter@gmail.com">ttmrichter@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
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.
<br>
<br>
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.
<br>
<br>
<table cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td>
-- <br>
<b>Michael T. Richter</b><br>
<i><font size="2">Email:</font></i><font size="2"> <a href="mailto:ttmrichter@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ttmrichter@gmail.com</a>, <a href="mailto:mtr1966@hotpop.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
mtr1966@hotpop.com</a></font><br>
<i><font size="2">MSN:</font></i><font size="2"> <a href="mailto:ttmrichter@hotmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ttmrichter@hotmail.com</a>, <a href="mailto:mtr1966@hotmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
mtr1966@hotmail.com</a>; </font><i><font size="2">YIM:</font></i><font size="2"> michael_richter_1966; </font><i><font size="2">AIM:</font></i><font size="2"> YanJiahua1966; </font><i><font size="2">ICQ:</font></i><font size="2">
241960658; </font><i><font size="2">Jabber:</font></i><font size="2"> <a href="mailto:mtr1966@jabber.cn" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mtr1966@jabber.cn</a></font><br>
<br>
<i><font size="1">"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."</font></i><font size="1"> </font><b><font size="1">
--Mother Theresa</font></b>
</td>
</tr>
</tbody></table>
</div>
<br>_______________________________________________<br>Haskell-Cafe mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">
http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br><br><br><br clear="all"></blockquote></div><br>