atom-haskell-archive / haskell-ghc-mod

haskell-ghc-mod atom package
https://atom.io/packages/haskell-ghc-mod
MIT License
69 stars 20 forks source link

Deps aren't detected for test-suite when using stack #57

Closed altaic closed 8 years ago

altaic commented 8 years ago

Any dependencies unique to the test-suite aren't detected by haskell-ghc-mod while using stack, thus producing erroneous import errors. The workaround is to additionally use a cabal sandbox.

lierdakil commented 8 years ago

At first glance this looks like ghc-mod problem. @DanielG, thoughts?

DanielG commented 8 years ago

Hmm you probably need to run stack test or something first so it does the equivalent of --enable-test. Not sure how stack handles this to be honest.

altaic commented 8 years ago

I've been rigorously using my test-suite, so I can verify that running stack test does not fix the problem.

lierdakil commented 8 years ago

ghc-mod 5.5.0.0 seems to pick those up just fine, so I think this was fixed upstream. Closing.