[Haskell-cafe] cabal v2 global install status

Richard Eisenberg lists at richarde.dev
Wed May 4 17:10:24 UTC 2022


I have found that cabal v2-install --lib has not worked for me in this use case.

Instead, I use https://github.com/phadej/cabal-extras/tree/master/cabal-env, which despite being somewhat old at this point, works beautifully for the use-case Tom describes.

Richard

> On May 4, 2022, at 12:56 PM, amindfv--- via Haskell-Cafe <haskell-cafe at haskell.org> wrote:
> 
> On Wed, May 04, 2022 at 06:42:53PM +0200, Francesco Ariis wrote:
>> Il 04 maggio 2022 alle 09:31 amindfv--- via Haskell-Cafe ha scritto:
>>> I'm very comfortable using cabal's `v2-` nix-style local builds at home and at work, but on a personal machine at home I've clung to `v1-install` because I _really_ like the ability to choose which packages are available in a simple `ghci` session.
>>> 
>>> For a long time that's been impossible or painful with the `v2-` commands. What's the status these days? I'm particularly interested in how it works for packages that only exist locally without a Hackage server.
>> 
>> Does
>> 
>> cabal new-install --lib
>> 
>> do what you want?
> 
> I don't know; in the past it hasn't, and I wanted to see what the current recommendations are before going down a long and potentially incorrect path.
> 
> Cheers,
> Tom
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe <http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe>
> Only members subscribed via the mailman list are allowed to post.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20220504/145b1f35/attachment.html>


More information about the Haskell-Cafe mailing list