You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 25, 2020. It is now read-only.
Daniel Gröber edited this page Sep 30, 2015
·
19 revisions
Known issues related to Cabal
None, we have cabal-helper now. Woo :)
Known issues related to Stack
It's not working
Make sure the dist/setup-config file doesn't exist in your project directory (the directory also containing your *.cabal file). When this file exists ghc-mod assumes you want to use cabal-install instead of Stack.
readPackageDb: inappropriate type
ghc-mod: $HOME/.stack/snapshots/x86_64-linux/lts-2.22/7.8.4/pkgdb/package.cache: GHC.PackageDb.readPackageDb: inappropriate type (not a ghc-pkg db file, wrong file magic number)
Your Stack resolver uses a different GHC version from what ghc-mod was linked with, in this case:
$ ghc-mod --version
ghc-mod version 5.3.0.0 compiled by GHC 7.10.2
VS.
$ stack ghc -- --version
The Glorious Glasgow Haskell Compilation System, version 7.8.4