postgresql-simple
postgresql-simple copied to clipboard
Compilation issue on archlinux
I'm trying to install postgresql-simple on a docker archlinux image, but it fails with
ghc: panic! (the 'impossible' happened)
(GHC version 7.8.2 for x86_64-unknown-linux):
attempt to prod-split usage call demand C1(U)
Complete log: https://gist.githubusercontent.com/anonymous/1c00880bbdd46b67f32e/raw (there are line endings missing due to manual copy-pasting)
Steps to reproduce:
$ docker run -ti divarvel/archlinux-haskell
$ mkdir test && cd test
$ cabal update
$ cabal sandbox init
$ cabal install postgresql-simple
GHC version: 7.8.2 cabal version 1.20.0.2 libpq version 9.3.4-2
Are you sure that you can load postgresql-libpq and link libpq in ghci inside the docker image? Given that the failure is in template haskell, this seems like a likely suspect to investigate. Issues #111 and #113 may be indirectly relevant.