<div dir="ltr">HP 2014.2.0.0 for Mac OS X is built with a bindist of GHC 7.8.3 that <i>is</i> compiled with support for 10.6.<div><br></div><div>To remove HP from a system, you can use the handy <font face="monospace, monospace">unisntall-hs</font> command - that does a better job than just poking around by hand.</div><div><br></div><div>There does appear to be a problem with Template Haskell, and loading some packages that depend on yet other packages to be loaded... For some reason dynamic loading in this case doesn't resolve. Fortunately there is a workaround:</div><div><br></div>​When you see a message like:<blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><span style="font-size:12.8000001907349px">Loading package parsec-3.1.5 ... <command line>: can't load .so/.DLL for: /Library/Haskell/ghc-7.8.3-</span><span style="font-size:12.8000001907349px">x86_64/lib/parsec-3.1.5/</span><span style="font-size:12.8000001907349px">libHSparsec-3.1.5-ghc7.8.3.</span><span style="font-size:12.8000001907349px">dylib (dlopen(/Library/Haskell/ghc-</span><span style="font-size:12.8000001907349px">7.8.3-x86_64/lib/parsec-3.1.5/</span><span style="font-size:12.8000001907349px">libHSparsec-3.1.5-ghc7.8.3.</span><span style="font-size:12.8000001907349px">dylib, 9): <font color="#cc0000"><b>Library not loaded: @rpath/libHStext-1.1.0.0-ghc7.</b></font></span><font color="#cc0000"><b><span style="font-size:12.8000001907349px">8.3.dylib</span></b></font></div><div><span style="font-size:12.8000001907349px">  Referenced from: /Library/Haskell/ghc-7.8.3-</span><span style="font-size:12.8000001907349px">x86_64/lib/parsec-3.1.5/</span><span style="font-size:12.8000001907349px">libHSparsec-3.1.5-ghc7.8.3.</span><span style="font-size:12.8000001907349px">dylib</span></div><div><span style="font-size:12.8000001907349px">  Reason: image not found)</span></div></blockquote><span style="font-size:12.8000001907349px"><br></span><div><span style="font-size:12.8000001907349px">Look at the part in red. It indicates that <b>text </b>can't be loaded. You need to add it's libdir to an export like so (you are adding the location of the libHStext... file, which is always in a similarly named directory under /Library/Haskell/ghc-7.8.3-x86_64/lib):</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><span style="font-size:12.8000001907349px"><font face="monospace, monospace">export DYLD_FALLBACK_LIBRARY_PATH=/</font></span><span style="font-family:monospace,monospace;font-size:12.8000001907349px">Library/Haskell/ghc-</span><span style="font-family:monospace,monospace;font-size:12.8000001907349px">7.8.3-x86_64/lib/text-1.1.0.0:$DYLD_FALLBACK_LIBRARY_PATH</span></div></blockquote><div><br></div>Rebuild, and you may see another to add, and you'll have to do this again. To build shaekespeare-2.0.4.1 on a stock HP 2014.2.0.0 install, I needed to add the following libs to that path primitive, hashable, mtl, and text.<div><br></div><div>I don't yet know if this is a bug in the way the HP libs were built, the way GHC was built, or just a fundamental problem of GHC 7.8.3 (and later) and OS X 10.6.</div><div><br></div><div>- Mark</div></div>