Skip to content
This repository has been archived by the owner on Apr 25, 2020. It is now read-only.
Daniel Gröber edited this page Feb 2, 2015 · 19 revisions

Problems with Cabal

Inconsistent Cabal Versions

Error: Cabal seems to have decided ghc-mod should be built using Cabal version
X.XX.X.X while the `cabal' executable in your PATH was built with Cabal version
Y.YY.Y.Y. [...]

See Inconsistent Cabal Versions

Cabal-1.22 and GHC-7.8 Related Runtime Errors

dist/setup-config: hGetContents: invalid argument (invalid byte sequence)

Cabal-1.22 changed to a binary format for dist/setup-config which hGetContents doesn't like since it has to convert it to Unicode.

NG BUG: GMECabalFlags (GMEString "extractField: failed extracting configFlags from input, input contained `configFlags'? False")

This also seems to be related to the Cabal-1.22 breakage though I haven't been able to confirm this yet.

To fix these you currently have to downgrade Cabal to something before 1.22. See Inconsistent Cabal Versions with GHC < 7.10.

Clone this wiki locally