<?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: Colors in GHCi</title>
	<atom:link href="http://martijn.van.steenbergen.nl/journal/2010/02/27/colors-in-ghci/feed/" rel="self" type="application/rss+xml" />
	<link>http://martijn.van.steenbergen.nl/journal/2010/02/27/colors-in-ghci/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 20 Jul 2010 01:16:44 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Martijn</title>
		<link>http://martijn.van.steenbergen.nl/journal/2010/02/27/colors-in-ghci/comment-page-1/#comment-4020</link>
		<dc:creator>Martijn</dc:creator>
		<pubDate>Thu, 24 Jun 2010 09:24:03 +0000</pubDate>
		<guid isPermaLink="false">http://martijn.van.steenbergen.nl/journal/?p=467#comment-4020</guid>
		<description>@Orphi Yes, I agree. It shouldn&#039;t be too hard.

@Nikolas Good question. I have no good reason for it.</description>
		<content:encoded><![CDATA[<p>@Orphi Yes, I agree. It shouldn&#8217;t be too hard.</p>
<p>@Nikolas Good question. I have no good reason for it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nikolas Mayr</title>
		<link>http://martijn.van.steenbergen.nl/journal/2010/02/27/colors-in-ghci/comment-page-1/#comment-3425</link>
		<dc:creator>Nikolas Mayr</dc:creator>
		<pubDate>Wed, 03 Mar 2010 13:39:18 +0000</pubDate>
		<guid isPermaLink="false">http://martijn.van.steenbergen.nl/journal/?p=467#comment-3425</guid>
		<description>Why are you using

#!/usr/bin/env bash

intead of

#!/bin/bash

?</description>
		<content:encoded><![CDATA[<p>Why are you using</p>
<p>#!/usr/bin/env bash</p>
<p>intead of</p>
<p>#!/bin/bash</p>
<p>?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Orphi</title>
		<link>http://martijn.van.steenbergen.nl/journal/2010/02/27/colors-in-ghci/comment-page-1/#comment-3420</link>
		<dc:creator>Orphi</dc:creator>
		<pubDate>Mon, 01 Mar 2010 11:59:37 +0000</pubDate>
		<guid isPermaLink="false">http://martijn.van.steenbergen.nl/journal/?p=467#comment-3420</guid>
		<description>I still think GHCi should have this built-in. We already have ansi-terminal on Hackage, which does this in a [ahem] *portable* way. (Your examples don&#039;t work on Windows, because it fails to grok ANSI escape sequences.)</description>
		<content:encoded><![CDATA[<p>I still think GHCi should have this built-in. We already have ansi-terminal on Hackage, which does this in a [ahem] *portable* way. (Your examples don&#8217;t work on Windows, because it fails to grok ANSI escape sequences.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erlend</title>
		<link>http://martijn.van.steenbergen.nl/journal/2010/02/27/colors-in-ghci/comment-page-1/#comment-3417</link>
		<dc:creator>Erlend</dc:creator>
		<pubDate>Sat, 27 Feb 2010 18:12:54 +0000</pubDate>
		<guid isPermaLink="false">http://martijn.van.steenbergen.nl/journal/?p=467#comment-3417</guid>
		<description>Cool. Thanks!
Works perfectly on openSuse 11.2. :-)</description>
		<content:encoded><![CDATA[<p>Cool. Thanks!<br />
Works perfectly on openSuse 11.2. <img src='http://martijn.van.steenbergen.nl/journal/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Lokhorst</title>
		<link>http://martijn.van.steenbergen.nl/journal/2010/02/27/colors-in-ghci/comment-page-1/#comment-3416</link>
		<dc:creator>Tom Lokhorst</dc:creator>
		<pubDate>Sat, 27 Feb 2010 16:26:56 +0000</pubDate>
		<guid isPermaLink="false">http://martijn.van.steenbergen.nl/journal/?p=467#comment-3416</guid>
		<description>This is very useful!

I&#039;ve updated the script to also highlight warnings (as I usually launch ghci from vim with -Wall):

    #!/usr/bin/env bash
    
    YELLOW=`echo -e &#039;33[93m&#039;`
    GREEN=`echo -e &#039;33[92m&#039;`
    RED=`echo -e &#039;33[91m&#039;`
    RESET=`echo -e &#039;33[0m&#039;`
    
    /usr/bin/ghci &quot;${@}&quot; 2&gt;&amp;1 &#124;\
      sed &quot;s/ Warning:/${YELLOW}&amp;${RESET}/g;s/^Failed, modules loaded:/${RED}&amp;${RESET}/g;s/^Ok, modules loaded:/${GREEN}&amp;${RESET}/g&quot;

I&#039;m not happy with the fact that this merges the stdout and stderr, but I don&#039;t know of a better way to do this.</description>
		<content:encoded><![CDATA[<p>This is very useful!</p>
<p>I&#8217;ve updated the script to also highlight warnings (as I usually launch ghci from vim with -Wall):</p>
<p>    #!/usr/bin/env bash</p>
<p>    YELLOW=`echo -e &#8216;33[93m&#8217;`<br />
    GREEN=`echo -e &#8216;33[92m&#8217;`<br />
    RED=`echo -e &#8216;33[91m&#8217;`<br />
    RESET=`echo -e &#8216;33[0m&#8217;`</p>
<p>    /usr/bin/ghci &#8220;${@}&#8221; 2&gt;&amp;1 |\<br />
      sed &#8220;s/ Warning:/${YELLOW}&amp;${RESET}/g;s/^Failed, modules loaded:/${RED}&amp;${RESET}/g;s/^Ok, modules loaded:/${GREEN}&amp;${RESET}/g&#8221;</p>
<p>I&#8217;m not happy with the fact that this merges the stdout and stderr, but I don&#8217;t know of a better way to do this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
