<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>therning.org/ magnus &#187; literate programming</title>
	<atom:link href="http://therning.org/magnus/archives/tag/literate-programming/feed" rel="self" type="application/rss+xml" />
	<link>http://therning.org/magnus</link>
	<description>Incoherent mumblings</description>
	<lastBuildDate>Sun, 05 Sep 2010 21:59:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Rubber and lhs?</title>
		<link>http://therning.org/magnus/archives/348</link>
		<comments>http://therning.org/magnus/archives/348#comments</comments>
		<pubDate>Tue, 29 Apr 2008 12:43:25 +0000</pubDate>
		<dc:creator>Magnus</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[haskell]]></category>
		<category><![CDATA[literate programming]]></category>
		<category><![CDATA[rubber]]></category>

		<guid isPermaLink="false">http://therning.org/magnus/?p=348</guid>
		<description><![CDATA[Another dear lazyweb post. Yesterday night I hacked up a silly little tool for use at work. Nothing spectaculari but I thought I&#8217;d try this Literate Haskell thing. I decided to go the LaTeX route and created a .lhs file. To my amazement rubber has a module for handling Literate Haskell, unfortunately it passes everything [...]]]></description>
			<content:encoded><![CDATA[<p>Another dear lazyweb post.</p>

<p>Yesterday night I hacked up a silly little tool for use at work.  Nothing spectacular<sup><a href="http://therning.org/magnus/archives/348#footnote_0_348" id="identifier_0_348" class="footnote-link footnote-identifier-link" title="I&amp;#8217;ll post the source here shortly.">i</a></sup> but I thought I&#8217;d try this <a href="http://www.haskell.org/haskellwiki/Literate_programming">Literate Haskell</a> thing.  I decided to go the LaTeX route and created a <code>.lhs</code> file.  To my amazement <a href="http://www.pps.jussieu.fr/~beffara/soft/rubber/">rubber</a> has a module for handling Literate Haskell, unfortunately it passes everything ending in <code>.lhs</code> through <a href="http://people.cs.uu.nl/andres/lhs2tex/">lhs2Tex</a>.  I didn&#8217;t really want to use lhs2Tex<sup><a href="http://therning.org/magnus/archives/348#footnote_1_348" id="identifier_1_348" class="footnote-link footnote-identifier-link" title="I&amp;#8217;ll probably have a closer look at it later but for now I wanted to keep things as easy as possible.">ii</a></sup> but I haven&#8217;t been able to find any way of changing rubber&#8217;s behaviour through its command line arguments.  What I&#8217;d like is a way to disable a module for a single invocation.  So, dear lazyweb, is there a way to do this from the command line?</p>

<p>So far I&#8217;ve worked around this by creating a symbolic link named <code>MyTool.tex</code> that points to the Haskell source, then I run rubber on the link.  Not to much of a hazzle, but it&#8217;d be nicer to pass an argument to rubber.</p>
<ol class="footnotes"><li id="footnote_0_348" class="footnote">I&#8217;ll post the source here shortly.</li><li id="footnote_1_348" class="footnote">I&#8217;ll probably have a closer look at it later but for now I wanted to keep things as easy as possible.</li></ol><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save">Share/Bookmark</a> </p>]]></content:encoded>
			<wfw:commentRss>http://therning.org/magnus/archives/348/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
