Could not find module `Test.Hspec'
- Bug description : in a solution that builds without problems I get : red squiggles under "import" in :
import Test.Hspec and a hover error of: [hs] Could not find module `Test.Hspec' Use -v to see a list of the files searched for. | import Couldn't guess that module name. Does it exist?
-
Observed behaviour : error : Could not find module `Test.Hspec'
-
Expected behaviour : no error
-
OS: windows
-
Plugin (ghc, stack, intero and haskero) version and VSCode version used : λ ghc --version The Glorious Glasgow Haskell Compilation System, version 8.4.3 λ stack --version Version 1.9.1, Git revision f9d0042c141660e1d38f797e1d426be4a99b2a3c (6168 commits) x86_64 hpack-0.31.0 λ intero --version Intero 0.1.34
vscode: Version: 1.29.1 (user setup) Commit: bc24f98b5f70467bc689abf41cc5550ca637088e Date: 2018-11-15T19:13:36.375Z Electron: 2.0.12 Chrome: 61.0.3163.100 Node.js: 8.9.3 V8: 6.1.534.41 Architecture: x64
- Steps to reproduce:
-
stack new,
-
add hspec to tests.dependencies in package.yaml
-
add import Test.Hspec to test/Spec.hs
-
save - red squiggles come
-
if you stack build it builds successfully
- If the issue is hard to repeat on an empty haskell project, a link to a repository containing a sample repeating the issue