Open
Description
- Build system: x86_64-linux
- GHC version: tested 9.6.6, 9.8.4, 9.10.1
- Haskell.nix rev : d4fd889 (as shown in flake.lock in repo below)
- Description:
ghc-pkg list
does not show template-haskell after modifying.cabal
file to add it and restarting env, causingcabal
commands to fail to solve for the template-haskell constraint.
To reproduce:
- Clone and
cd
to repo https://github.com/nrs-status/haskellnixIssue/tree/main - Modify cabal file to have
build-depends
contain onlybase, template-haskell
nix develop
and thenghc-pkg list
Since cabal doesn't work (because it can't solve for the template-haskell package that is not in ghc-pkg list), this causes the lsp to not work as well. This wouldn't be an issue if it wasn't for the lsp, because the nix run
and nix build
commands work properly and seem to solve the constraint.
Metadata
Metadata
Assignees
Labels
Something isn't workingSomething isn't working