<?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>Developers, Developers, Developers! &#187; config</title>
	<atom:link href="http://maksim.sorokin.dk/it/tag/config/feed/" rel="self" type="application/rss+xml" />
	<link>http://maksim.sorokin.dk/it</link>
	<description>Maksim Sorokin IT Blog</description>
	<lastBuildDate>Sun, 05 Feb 2012 19:37:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>Config Files in Haskell</title>
		<link>http://maksim.sorokin.dk/it/2010/05/09/config-files-in-haskell/</link>
		<comments>http://maksim.sorokin.dk/it/2010/05/09/config-files-in-haskell/#comments</comments>
		<pubDate>Sun, 09 May 2010 08:09:41 +0000</pubDate>
		<dc:creator>Maksim Sorokin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[functional programming]]></category>
		<category><![CDATA[Haskell]]></category>

		<guid isPermaLink="false">http://maksim.sorokin.dk/it/?p=170</guid>
		<description><![CDATA[Here is an easy and simple way to read configuration files in Haskell using ConfigFile package. Here is a simple configuration file test.cfg example: key: value And here is the program which reads the configuration file: import Data.ConfigFile import Data.Either.Utils main = do val &#60;- readfile emptyCP &#34;test.cfg&#34; let cp = forceEither val putStrLn $ [...]]]></description>
			<content:encoded><![CDATA[<p>Here is an easy and simple way to read configuration files in Haskell using <a href="http://hackage.haskell.org/package/ConfigFile">ConfigFile</a> package.<br />
<span id="more-170"></span></p>
<p>Here is a simple configuration file <code>test.cfg</code> example:</p>
<pre class="brush: plain; title: ;">
key: value
</pre>
<p>And here is the program which reads the configuration file:</p>
<pre class="brush: plain; title: ;">
import Data.ConfigFile
import Data.Either.Utils

main =
 do val &lt;- readfile emptyCP &quot;test.cfg&quot;
    let cp = forceEither val
    putStrLn $ forceEither $ get cp &quot;&quot; &quot;key&quot;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://maksim.sorokin.dk/it/2010/05/09/config-files-in-haskell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

