<?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>Jan Varwig &#187; install</title>
	<atom:link href="http://jan.varwig.org/archive/tag/install/feed" rel="self" type="application/rss+xml" />
	<link>http://jan.varwig.org</link>
	<description>Somewhere between Hello World and HAL9000</description>
	<lastBuildDate>Wed, 17 Mar 2010 11:12:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Getting Cabal to run on Mac OS X Leopard</title>
		<link>http://jan.varwig.org/archive/getting-cabal-to-run-on-mac-os-x-leopard</link>
		<comments>http://jan.varwig.org/archive/getting-cabal-to-run-on-mac-os-x-leopard#comments</comments>
		<pubDate>Mon, 04 Aug 2008 12:19:14 +0000</pubDate>
		<dc:creator>Jan</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Studium]]></category>
		<category><![CDATA[cabal]]></category>
		<category><![CDATA[ghc]]></category>
		<category><![CDATA[hackage]]></category>
		<category><![CDATA[haskell]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[yampa]]></category>

		<guid isPermaLink="false">http://jan.varwig.org/?p=87</guid>
		<description><![CDATA[In preparation for the work on my Haskell NXT Library, I needed to install Yampa today. The official page lists version 0.9.1 as most recent, though that release is from 2002. Newer (though kinda &#8220;inofficial&#8221;) versions are available through Hackage/Cabal.
Getting Cabal to work wasn&#8217;t difficult at all in the end, but scraping together all the [...]]]></description>
			<content:encoded><![CDATA[<p>In preparation for the work on my <a href="http://github.com/janv/haskell-nxt">Haskell NXT Library</a>, I needed to install <a href="http://haskell.org/yampa">Yampa</a> today. The official page lists version 0.9.1 as most recent, though that release is from 2002. Newer (though kinda &#8220;inofficial&#8221;) versions are <a href="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/Yampa">available</a> through <a href="http://haskell.org/cabal/">Hackage/Cabal</a>.
Getting Cabal to work wasn&#8217;t difficult at all in the end, but scraping together all the information on how to get there was a bit tricky for an absolute n00b like me. I publish my steps here so that others trying to get Cabal to run on Leopard (or other systems) can save some time.</p>

<p>First, you should have <a href="http://haskell.org/ghc/">GHC</a> installed via <a href="http://www.macports.org/">MacPorts</a> (<code>sudo port install ghc</code>)</p>

<p>I installed <a href="http://darcs.net/">darcs</a> too, but I don&#8217;t even think that was necessary (<code>sudo port install darcs</code>)</p>

<p>Now, the most recent Cabal Library (the one included in MacPorts GHC was a bit outdated):<br />
Go to <a href="http://haskell.org/cabal/">http://haskell.org/cabal/</a>, download and untar the most recent <em>Cabal</em> (library) and <em>cabal-install</em> (commandline interface) packages. Install Cabal as root, as described in the readme-file:</p>

<pre><code>ghc --make Setup.hs
./Setup configure
./Setup build
sudo ./Setup install
</code></pre>

<p>For cabal-install to compile, we need to further libraries, <a href="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HTTP">HTTP</a> and <a href="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/zlib">zlib</a>, both obtainable in the HackageDB (just follow the links). Download and untar, then proceed as with Cabal:</p>

<pre><code>ghc --make Setup.lhs (.lhs in case of HTTP, zlib uses the .hs extension)
./Setup configure
./Setup build
sudo ./Setup install
</code></pre>

<p>Finally change to the cabal-install directory and repeat these steps again.</p>

<p>After cabal-install is installed, run <code>cabal update</code> to obtain the latest package list. Now you can install packages via <code>cabal install &lt;package name&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://jan.varwig.org/archive/getting-cabal-to-run-on-mac-os-x-leopard/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
