[Haskell-cafe] Global Package Install
Richard Eisenberg
rae at richarde.dev
Thu Feb 18 19:52:01 UTC 2021
As someone who usually works on individual scraps of Haskell (not projects), I frequently wish to do the same and have struggled with both cabal and stack in getting what I want.
Happily, there is a nicely working alternative to both: cabal-env from https://github.com/phadej/cabal-extras <https://github.com/phadej/cabal-extras> works great. I use it regularly. It does what you want.
Happy Haskelling,
Richard
> On Feb 18, 2021, at 3:22 AM, A. Mc. <47dragonfyre at gmail.com> wrote:
>
> Hello,
>
> I am trying to add the package System.Random to be able to run it the same way Data.List or Data.Char, et cetera does in ghci and in doing a ghc command line build. I've tried using $ stack ghci --package random which I have to run every single time I want to load a module that imports anything from System.Random and I've already tried $ cabal install --lib random which only works with cabal, and I've used the command $ stack install random, which says 'cache populated' but if a restart and load a dependent module, still is not working for me. I've also tried to update the .yaml file by putting System.Random into the brackets is the sr directory, but this I'm guessing isn't what you're supposed to do as it doesn't work either. I'm using Cygwin on a Windows 10 operating system. Your assistance in this matter would be greatly appreciated.
>
> Thank you for your time.
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> 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/20210218/c4ade008/attachment.html>
More information about the Haskell-Cafe
mailing list