[Haskell-cafe] Global Package Install

Richard Eisenberg rae at richarde.dev
Fri Feb 19 22:10:23 UTC 2021



> On Feb 19, 2021, at 4:54 PM, Joachim Breitner <mail at joachim-breitner.de> wrote:
> 
> I couldn't find a README, hard to see what it does exactly. Is it just
> more convenience around the idiom of using
> 
>   cabal install --env . --lib ghc-heap-view
> 
> to get a .ghc.environment file in the local directory (which is, as
> long as you use ghc or ghci in that directory, as good as the good old
> cabal v1-install, it seems)?

Maybe? I don't know -- that's part of the beauty of it (for me). I just type `cabal-env lens` and then I can access lens modules from ghci, no matter where I start ghci. So it can't be exactly what you wrote, because whatever cabal-env does is directory-agnostic.

Richard


More information about the Haskell-Cafe mailing list