-
-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Description
Project description
I'd like to propose a couple of functions that should simplify the setup of Haskell projects.
I'm not aware if they're already available anywhere.
-
getHaskellPackagesDeps - provides a list of all packages from getCabalDeps of packages p1,p2,...pN minus packages p1, p2, ..., pN. This allows for developing local packages with other local packages as dependencies. Only non-local packages will be collected.
-
ghcForPackages - uses the previous function to construct a ghc with packages. It's a ghc with dependencies for local packages provided via an override of
haskell.packages
. -
It may be useful to provide a wrapper for
cabal
that puts the ghc with packages onPATH
ofcabal
. That's a way to avoid conflicts between ghc versions in a devshell like haskell-language-server provides its own GHC in a devshell #225895