This seems to have worked fine because my hyahtzee2.cabal got updated with references to the 2 tasty dependencies. Moreover, stack test runs my tests successfully.
Nevertheless, lsp complains while checking my test/Spec.hs file:
LSP :: Connected to [lsp-haskell:191742 status:starting].
LSP :: lsp-haskell:191742 initialized successfully
Could not load module ‘Test.Tasty’
It is a member of the hidden package ‘tasty-1.2.3’.
You can run ‘:set -package tasty’ to expose it.
(Note: this unloads all the modules in the current scope.)
Hi,
:warning: I'm learning haskell and have barely any experience with LSP.
I created a new project with
stack new
. I also addedtasty
andtasty-hspec
to my package.yaml:This seems to have worked fine because my
hyahtzee2.cabal
got updated with references to the 2 tasty dependencies. Moreover,stack test
runs my tests successfully.Nevertheless, lsp complains while checking my
test/Spec.hs
file:The error message is: