title: Installing Haskell packages on Mac
body: <p>I can't seem to get a few Haskell packages to install on my Mac (10.6.8). I first tried Happstack and it failed and then I tried Snap.</p>
  
  <p>Sometimes when I run ghci I get a segmentation fault.</p>
  
  <p>Other times it works and goes like this:</p>
  
  <pre><code>GHCi, version 7.4.2: http://www.haskell.org/ghc/  :? for help
  Loading package ghc-prim ... linking ... done.
  Loading package integer-gmp ... linking ... done.
  Loading package base ... linking ... done.
  Prelude&gt;
  </code></pre>
  
  <p>When trying to get Snap:</p>
  
  <pre><code>....
  ....
  ....
  Loading package vector-0.10.0.1 ... linking ... done.
  Loading package zlib-0.5.4.0 ... linking ... done.
  Loading package zlib-bindings-0.1.1.3 ... linking ... done.
  Loading package zlib-enum-0.2.3 ... linking ... done.
  Loading package snap-core-0.9.3.1 ... linking ... done.
  Loading package snap-server-0.9.3.3 ... linking ... done.
  Loading package directory-tree-0.11.0 ... linking ... done.
  cabal: Error: some packages failed to install:
  snap-0.11.2 failed during the building phase. The exception was:
  ExitFailure 11
  </code></pre>
  
  <p>I have seen this problem a few times but nothing really solved it for me. Any ideas?</p>