-
Notifications
You must be signed in to change notification settings - Fork 0
Home
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 issue you currently have to downgrade Cabal to something before 1.22. See Inconsistent Cabal Versions with GHC < 7.10.
The version of ghc-mod on Hackage (5.2.1.2) does not support GHC 7.10 please install ghc-mod from git until a new version is released.
Related issue: https://github.com/kazu-yamamoto/ghc-mod/issues/437
Case splitting does not work with GHC 7.10 even when using ghc-mod from master. There is a potential workaround but the issue needs more investigation into what changes in GHC's API lead to this issue.
Related issue: https://github.com/kazu-yamamoto/ghc-mod/issues/438