<div dir="ltr">i'd totally support making this prominently visible  on <a href="http://haskell.org">haskell.org</a> <div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, May 24, 2014 at 2:58 AM, Kevin Nardi <span dir="ltr"><<a href="mailto:knardi@gmail.com" target="_blank">knardi@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">+1<div><br></div><div>This is really awesome, and definitely would have made my life easier the first time I installed GHC.</div>

<span class="HOEnZb"><font color="#888888"><div><br></div><div>-Kevin</div></font></span><div><div class="h5"><div><br><div><div>On May 23, 2014, at 11:56 PM, Adam Bergmark <<a href="mailto:adam@bergmark.nl" target="_blank">adam@bergmark.nl</a>> wrote:</div>

<br><blockquote type="cite"><div dir="ltr">Nice, thanks for doing this!<div><br><div>I'll make sure to try this next time i need to install GHC.<br></div><div><br></div><div>- Adam</div><div><br></div><div><br></div>
</div>
</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, May 23, 2014 at 8:42 PM, Bob Ippolito <span dir="ltr"><<a href="mailto:bob@redivi.com" target="_blank">bob@redivi.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr"><div>After seeing some demand for packaged Haskell for Mac for the IHaskell project and by word of mouth at BayHac I decided to take a stab at it. Here you go:</div><div><a href="http://ghcformacosx.github.io/" target="_blank">http://ghcformacosx.github.io/</a> (currently GHC 7.8.2 and cabal-install 1.20.0.1)</div>



<div><br></div><div>Why?</div><div><br></div>It can be a bit cumbersome to use the GHC builds from <a href="http://haskell.org/" target="_blank">haskell.org</a> on Mac, because they don't come "fully baked", you have to ./configure --prefix=/some/path to get them installed and the installation is not relocatable, if you move it the scripts will break and the package.conf.d files will go stale. It also doesn't ship with cabal-install, which is cumbersome as well, especially for new users.<div>



<br></div><div>How does it work?</div><div><br></div><div>In <a href="https://github.com/ghcformacosx/ghc-dot-app" target="_blank">https://github.com/ghcformacosx/ghc-dot-app</a> I have a Main.hs script which downloads/builds/etc. all of the prerequisites. Then it patches the shell scripts to use a path relative to themselves (after following symlinks) rather than hard-coding an installation location. It also patches the package.conf.d files to use ${pkgroot} relative paths.</div>



<div><br></div><div>Separately, there's an Xcode project that includes all of the metadata to make it look like a real Mac app bundle (icons, Info.plist) and a small Cocoa application that has a button to open the docs and provides instructions for adding it to the PATH in .bashrc. Due to the heuristics in Mac OS X's man, this will automatically make man pages work as well. Using Xcode here also makes it produce a signed build (which I do, since I am already paying for the $99/year license).</div>


<span><font color="#888888">
<div><br></div><div>-bob</div><div><br></div></font></span></div>
<br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br></div>
_______________________________________________<br>Haskell-Cafe mailing list<br><a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br><a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>

</blockquote></div><br></div></div></div></div><br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br></div>