I'm trying to start going through the book / tutorial for Yesod, but I've hit a problem relatively early. I'm able to successfully install yesod-platform and yesod-bin, but whenever I create a framework using yesod init with a SQL database (tried with both postgres and SQLite), I receive the following error when cabal install-ing said framework.
Loading package persistent-sqlite-1.2.1 ... ghc.exe:
Unknown PEi386 section name `.drectve' (while processing:
C:\SSol\yesod\one\.cabal-sandbox\i386-windows-ghc-7.6.3\
persistent-sqlite-1.2.1\libHSpersistent-sqlite-1.2.1.a) ghc.exe:
panic! (the 'impossible' happened)
(GHC version 7.6.3 for i386-unknown-mingw32): loadArchive
"C:\\SSol\\yesod\\one\\.cabal-sandbox\\i386-windows-ghc-7.6.3\\
persistent-sqlite-1.2.1\\libHSpersistent-sqlite-1.2.1.a": failed
A similar error occurs when using a different SQL database, with the applicable persistent package.
However, when building a framework with no database, it installs without a hitch.
I'm using cabal-install native sandboxing on cabal-install version 1.18.03 (though I had the same issue with 1.18.02). I've tried a few fresh installs, and with a clean package cache, all with the same result.
Thanks in advance!