New cabal project with config as below. Cabal builds and runs my code fine. Language server reports error when importing Data.Map.Strict. “Could not load module… It is a member of the hidden package containers-0.7”.
After the basic setup didn’t work, following the instructions from the link below, I also tried cabal --lib install containers --package-env .
But, can someone please tell me how do I set this up so it works, set and forget? It worked last year, and the year before, something has changed.
Followed everything here First steps - GHCup, it simply does not work.
HLS 2.9.0.0 cabal 3.12.1.0 GHC 9.10.1, using ghcup.
executable aoc2024
main-is: Main.hs
-- Modules included in this executable, other than Main.
-- other-modules:
other-modules:
Day1,
Day2,
Day3
build-depends: base ^>=4.20.0.0,
extra ^>= 1.8,
containers ^>= 0.7
-- LANGUAGE extensions used by modules in this package.
-- other-extensions:
hs-source-dirs: .
default-language: Haskell2010
Thanks for any pointers.