<div dir="ltr"><div>Hi,<br></div><div>sorry for the late reply. I got Yesod installed and running on my OSX 10.6.8!<br><br></div><div>Before I comment how I did it,  let me start again by thanking you all for that quick & generous help. <br></div><div>I haven't had the time to try all those different suggestions you all provided although I'd like to do so<br></div><div>and post the results here if time permits. It seems to me it could be worth to have a record of it as others<br></div><div>may follow a different choice of these approaches when it comes to installing&using Haskell -although that's more of wild<br></div><div>guess of mine than an educated one.<br><br></div><div>I tried again the minimal disruptive approach, that is, keep my HP installation and try sandboxing yesod.<br><br></div><div>The quickstart from the yesod site <br><a href="http://www.yesodweb.com/page/quickstart">http://www.yesodweb.com/page/quickstart</a><br>wouldn't work as I said at the beginning of this thread because the shakespeare package didn't get built. <br>That's because those steps suggest installing yesod-bin globally and only afterwards start the sandbox.<br></div><div>Reversing those steps does the work. <br><br></div><div>More concretely, what I did was<br></div><div>mkdir yesod<br></div><div>cd yesod<br>wget --no-check-certificate <a href="https://www.stackage.org/lts/cabal.config">https://www.stackage.org/lts/cabal.config</a><br>cabal update<br>cabal install alex happy (actually I had these already installed)<br>cabal sandbox init<br>cabal install network (see below why)<br>cabal install primitive-0.6 (idem)<br>cabal install yesod-bin<br><br></div><div>And at this point shakespeare built fine and yesod got installed. I went then further and did<br></div><div>export PATH=./.cabal-sandbox/bin/:$PATH<br>in order to get yesod running. <br><br>yesod init --bare<br>cabal install -j --enable-tests --max-backjumps=-1 --reorder-goal (probably not necessary; followed blindly init's suggestion)<br></div><div>cabal install --run-tests<br></div><div>yesod devel<br></div><div><br></div><div>That lead to a minor configuring of FirstWebServer-0.0.0..., which triggered a recompile of a few libraries and a rebuild of the application and finally a working Welcome Yesod page at localhost:3000<br></div><div><br></div><div>Trying cabal install yesod-bin right after the sandbox init failed with file not found .cabal-sandbox/logs/network-2.6.2.0.log <br></div><div>This required thus to install network. Still yesod-bin install failed again this time complaining about not finding file<br>.cabal-sandbox/logs/primitive-0.6.log, which in turn required the install of primitive-0.6. After that yesod-bin installs<br></div><div>without problems. <br><br></div><div>I did do an additional step before the final cabal install yesod-bin, just out of despair of the time devoted to it. That step was <br></div><div>a <br></div><div>chmod +w .cabal-sandbox/<br></div><div>However, I don't think this is relevant at all. But just in case...<br><br></div><div>Lastly, let me add another suggestion I got from Rahul Muttineni in a private email. As I believe in giving credit where credit is due, I'll paste his answer below for others -and me, in the future- to see. After all I haven't heard of the Nix package manager before.<br><br></div><div>Again, thanks all!.<br></div><div>Regards,<br></div><div>MA<br></div><div><br>On Fri, Jun 19, 2015 at 11:43 AM, R. Muttineni wrote<br><br>    Hello Miguel,<br><br>    I saw that you had trouble installing yesod on your Mac OS on the haskell-cafe mailing list. I receive the list in digest format, so it's rather cumbersome for me to respond to your thread as it has an extremely long length. For now, I'll respond to you personally.<br><br>    I suggest you try the Nix package manager. I'm currently running both yesod and pandoc on the most recent GHC (7.10.1) with no problems. You can find a tutorial here <a href="http://corajr.com/posts/2014/12/22/nix-osx-haskell/">http://corajr.com/posts/2014/12/22/nix-osx-haskell/</a>. It's very easy. Just write (or generate with cabal2nix) the default.nix file and use the nix command line tools and you're on your way. The packages are built from source so expect it take lots of time. Pandoc will take many hours, but yesod should finish in a couple.<br><br>    If this helped you, please repost this on the mailing list. Don't worry about quoting me, just provide the link for others to see.<br><br>    If you face any issues, feel free to ask me, or you can post it on the nixpkgs github repository and they'll help you out. If you are going to be developing a lot in Haskell, I suggest you invest time in getting to know Nix as it guaranteed to cure cabal hell. Stackage works too, but it doesn't offer you the flexibility of rebuilding the packages for profiling/debugging effortlessly as well as using different versions of the compiler for different packages like it does with Nix. Moreover, nixpkgs currently supports a majority of Hackage, so you don't have to worry about losing out.<br><br>    Best Regards,<br>    Rahul Muttineni<br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">--<br>Public key ID: E8FE60D7 <br>Public key server: see, e.g., hkp://<a href="http://keys.gnupg.net" target="_blank">keys.gnupg.net</a> <br></div></div></div></div></div>
<br><div class="gmail_quote">On Fri, Jun 19, 2015 at 10:57 AM, Mark Lentczner <span dir="ltr"><<a href="mailto:mark.lentczner@gmail.com" target="_blank">mark.lentczner@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 dir="ltr"><p style="margin-bottom:16px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.3999996185303px;margin-top:0px!important">For the record: The problem doesn't occur on OS X 10.10.</p><p style="margin-top:0px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.3999996185303px;margin-bottom:0px!important">I haven't done the "binary search through OS X releases" dance to find where the problem stops being a problem..</p>​</div>
</blockquote></div><br></div>