[Haskell-cafe] Global Package Install

Hécate hecate at glitchbra.in
Thu Feb 18 08:40:11 UTC 2021


Hi A.

In Stack, the `install` sub-command is an alias to `build --copy-bins`, 
as per the documentation[0]. If you install libraries globally, you may 
hit a point where there is a dependency conflict. ;)
My overall advice is to create a project and add the dependencies with 
which you play.

Cheers,
Hécate

[0]: https://docs.haskellstack.org/en/stable/GUIDE/#the-build-synonyms

On 18/02/2021 09:22, A. Mc. 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.

-- 
Hécate ✨
🐦: @TechnoEmpress
IRC: Uniaika
WWW: https://glitchbra.in
RUN: BSD

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20210218/529da380/attachment.html>


More information about the Haskell-Cafe mailing list