<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
I've been using the Haskell package for the last week to learn
Haskell, but I've found several issues that make it feel like
abandonware (which I know its not).<br>
<br>
I'm running OS X 10.6.7 with XCode 4 and installed the Haskell
Platform 2011.2.0.0-x86_64.pkg.<br>
(I just realized this is labeled an experiment build. I hope that
isn't the root of my problems. Tell me if it is.)<br>
<br>
ghci and runhaskell all work fine, which has been enough to get me
into the language (which I'm quite enjoying).<br>
<br>
ghc will not compile the simplest program without manually
specifying -L/usr/lib:<br>
<blockquote>
<pre>$ cat hello_world.hs
main = putStrLn "hello, world"
$ ghc --make hello_world
Linking hello_world ...
ld: library not found for -lcrt1.10.5.o
collect2: ld returned 1 exit status
$ ghc -L/usr/lib --make hello_world
Linking hello_world ...
ld: warning: -read_only_relocs cannot be used with x86_64
ld: warning: could not create compact unwind for _ffi_call_unix64: does not use RBP or RSP based frame
</pre>
</blockquote>
Seems like a pretty important directory to include, making it feel
like a very serious oversight. I've been told this is because the
Haskell Package is linked to the <tt>/Developer/SDKs/MacOSX10.5.sdk/</tt>
directory, even though the package is explicitly labeled for 10.6.<br>
<br>
This error comes up in Cabal installs as well. In fact, I have not
been able to get a singe Cabal install to succeed out-of-the-box.
I've tried a variety of packages such as vec, pandoc, yi.<br>
<br>
I'm understandably hesitant to just symlink my entire 10.6 SDK as
10.5 just to get this to work. I would greatly appreciate
alternative solutions.<br>
<span class="Apple-style-span" style="border-collapse: separate;
color: rgb(0, 0, 0); font-family: Times; font-size: 16px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: 2;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px;"><span class="Apple-style-span"
style="border-collapse: collapse; font-family: Arial,'Liberation
Sans','DejaVu Sans',sans-serif; font-size: 14px; line-height:
18px; text-align: left;"></span></span>
</body>
</html>