Daniel Gröber (dxld)
Daniel Gröber (dxld)
`rm -rf dist/` or `cabal clean` is your friend: https://github.com/kazu-yamamoto/ghc-mod/blob/master/Language/Haskell/GhcMod/Cradle.hs#L90
Well people tend to have those left over from their cabal-install days so I have to ask. Give me the output of `ghc-mod debug` in that directory then.
Looks perfectly fine to me: ``` Project: StackProject (StackEnv { seDistDir = ".stack-work/dist/x86_64-osx/Cabal-1.22.4.0", seBinPath = ["/Users/d12frosted/.stack/snapshots/x86_64-osx/lts-3.4/7.10.2/bin", "/Users/d12frosted/.stack/programs/x86_64-osx/ghc-7.10.2/bin","/Users/d12frosted/.local/bin","/usr/texbin","/usr/local/bin","/usr/bin","/bin","/usr/sbin","/sbin","/opt/X11/bin","/Library/TeX/texbin","."], seSnapshotPkgDb = "/Users/d12frosted/.stack/snapshots/x86_64-osx/lts-3.4/7.10.2/pkgdb", seLocalPkgDb = "/Users/d12frosted/project/.stack-work/install/x86_64-osx/lts-3.4/7.10.2/pkgdb" }) ``` Must be something different.
@d12frosted Any news on this issue?
This is tricky since that error is coming from the GHC API I believe. But it's probably just related to `guessTarget`.
See also #688
Okay so GHC doesn't do cross module usage analysis apparently. So say you have some modules: ``` module Main where import A main = print foo foo = bar ```...
+1 but we have to be careful how we do this. I'm still on the fence about weather we should give ghc-mod an (emacs) .dir-locals style configuration mechanism or just...
Sounds interesting. I like the idea of having all configuration options available in an increasingly user facing location and having those being closer to the user (config file, env) able...