<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: XML prettifier in Haskell</title>
	<atom:link href="http://therning.org/magnus/archives/695/feed" rel="self" type="application/rss+xml" />
	<link>http://therning.org/magnus/archives/695</link>
	<description>Incoherent mumblings</description>
	<lastBuildDate>Wed, 08 Aug 2012 00:21:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: endrew</title>
		<link>http://therning.org/magnus/archives/695/comment-page-1#comment-184576</link>
		<dc:creator>endrew</dc:creator>
		<pubDate>Wed, 15 Jul 2009 13:50:47 +0000</pubDate>
		<guid isPermaLink="false">http://therning.org/magnus/?p=695#comment-184576</guid>
		<description><![CDATA[&lt;p&gt;Aha! I knew there was something to it :)&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>Aha! I knew there was something to it <img src='http://therning.org/magnus/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas Krey</title>
		<link>http://therning.org/magnus/archives/695/comment-page-1#comment-184545</link>
		<dc:creator>Andreas Krey</dc:creator>
		<pubDate>Wed, 15 Jul 2009 09:56:22 +0000</pubDate>
		<guid isPermaLink="false">http://therning.org/magnus/?p=695#comment-184545</guid>
		<description><![CDATA[&lt;p&gt;And, of course, you technically can&#039;t pretty-print XML, because all the whitespace is significant. Except for within the tags.&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>And, of course, you technically can&#8217;t pretty-print XML, because all the whitespace is significant. Except for within the tags.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Magnus</title>
		<link>http://therning.org/magnus/archives/695/comment-page-1#comment-184540</link>
		<dc:creator>Magnus</dc:creator>
		<pubDate>Wed, 15 Jul 2009 08:12:54 +0000</pubDate>
		<guid isPermaLink="false">http://therning.org/magnus/?p=695#comment-184540</guid>
		<description><![CDATA[&lt;p&gt;&lt;strong&gt;@endrew &amp; David&lt;/strong&gt;, every time I use &lt;code&gt;getArgs&lt;/code&gt; I forget it doesn&#039;t include &lt;code&gt;argv[0]&lt;/code&gt; so I always start out with &lt;code&gt;liftM (!! 1)&lt;/code&gt; and when reminded (through a run-time exception) I put in the zero.  Of course I could always us &lt;code&gt;(_:fn)&lt;/code&gt;, but pattern matching in &lt;code&gt;do&lt;/code&gt; (or &lt;code&gt;let&lt;/code&gt;) still doesn&#039;t come naturally for me. :-)&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p><strong>@endrew &amp; David</strong>, every time I use <code>getArgs</code> I forget it doesn&#8217;t include <code>argv[0]</code> so I always start out with <code>liftM (!! 1)</code> and when reminded (through a run-time exception) I put in the zero.  Of course I could always us <code>(_:fn)</code>, but pattern matching in <code>do</code> (or <code>let</code>) still doesn&#8217;t come naturally for me. <img src='http://therning.org/magnus/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://therning.org/magnus/archives/695/comment-page-1#comment-184529</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 15 Jul 2009 01:01:38 +0000</pubDate>
		<guid isPermaLink="false">http://therning.org/magnus/?p=695#comment-184529</guid>
		<description><![CDATA[&lt;p&gt;For your first line in main, I recommend:&lt;/p&gt;

&lt;p&gt;main = do
  [fn] &lt;- getArgs
  ...&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>For your first line in main, I recommend:</p>

<p>main = do
  [fn] &lt;- getArgs
  &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: endrew</title>
		<link>http://therning.org/magnus/archives/695/comment-page-1#comment-184517</link>
		<dc:creator>endrew</dc:creator>
		<pubDate>Tue, 14 Jul 2009 18:09:38 +0000</pubDate>
		<guid isPermaLink="false">http://therning.org/magnus/?p=695#comment-184517</guid>
		<description><![CDATA[&lt;p&gt;I&#039;m really just a noob, but what&#039;s the point of using (!! 0) instead of head?&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m really just a noob, but what&#8217;s the point of using (!! 0) instead of head?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Magnus</title>
		<link>http://therning.org/magnus/archives/695/comment-page-1#comment-184504</link>
		<dc:creator>Magnus</dc:creator>
		<pubDate>Tue, 14 Jul 2009 15:56:58 +0000</pubDate>
		<guid isPermaLink="false">http://therning.org/magnus/?p=695#comment-184504</guid>
		<description><![CDATA[&lt;p&gt;&lt;strong&gt;@Gutkovas&lt;/strong&gt;, what&#039;s the fun in that?  Kidding aside, I didn&#039;t know xmllint did that, thanks for pointing it out.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;@ephemient&lt;/strong&gt;, yes, that&#039;s what I&#039;ve often done, but as you point out, it&#039;s not always reliable.&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p><strong>@Gutkovas</strong>, what&#8217;s the fun in that?  Kidding aside, I didn&#8217;t know xmllint did that, thanks for pointing it out.</p>

<p><strong>@ephemient</strong>, yes, that&#8217;s what I&#8217;ve often done, but as you point out, it&#8217;s not always reliable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ephemient</title>
		<link>http://therning.org/magnus/archives/695/comment-page-1#comment-184500</link>
		<dc:creator>ephemient</dc:creator>
		<pubDate>Tue, 14 Jul 2009 15:48:52 +0000</pubDate>
		<guid isPermaLink="false">http://therning.org/magnus/?p=695#comment-184500</guid>
		<description><![CDATA[&lt;p&gt;As cool as that is, what about Vim&#039;s &quot;gg=G&quot;?  It sometimes gets confused by what the proper indentation should be around comments, but aside from that, it&#039;s pretty good.&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>As cool as that is, what about Vim&#8217;s &#8220;gg=G&#8221;?  It sometimes gets confused by what the proper indentation should be around comments, but aside from that, it&#8217;s pretty good.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ram?nas Gutkovas</title>
		<link>http://therning.org/magnus/archives/695/comment-page-1#comment-184493</link>
		<dc:creator>Ram?nas Gutkovas</dc:creator>
		<pubDate>Tue, 14 Jul 2009 15:13:10 +0000</pubDate>
		<guid isPermaLink="false">http://therning.org/magnus/?p=695#comment-184493</guid>
		<description><![CDATA[&lt;p&gt;There is an utility command &quot;xmllint&quot; which comes with &quot;libxml2-utils&quot; package on Ubuntu.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;xmllint --format cluttered.xml &gt; prettified.xml
&lt;/code&gt;&lt;/pre&gt;
]]></description>
		<content:encoded><![CDATA[<p>There is an utility command &#8220;xmllint&#8221; which comes with &#8220;libxml2-utils&#8221; package on Ubuntu.</p>

<pre><code>xmllint --format cluttered.xml &gt; prettified.xml
</code></pre>
]]></content:encoded>
	</item>
</channel>
</rss>
