<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi A.<br>
<br>
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. ;)<br>
My overall advice is to create a project and add the dependencies
with which you play.</p>
<p>Cheers,<br>
Hécate<br>
<br>
[0]:
<a class="moz-txt-link-freetext" href="https://docs.haskellstack.org/en/stable/GUIDE/#the-build-synonyms">https://docs.haskellstack.org/en/stable/GUIDE/#the-build-synonyms</a></p>
<div class="moz-cite-prefix">On 18/02/2021 09:22, A. Mc. wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAOsti3k_hj6aSfoEqRcy6ojnZnYnvqChaydpYMhDz6b+=B7J3w@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">Hello,
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Thank you for your time.</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
<a class="moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a>
Only members subscribed via the mailman list are allowed to post.</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Hécate ✨
🐦: @TechnoEmpress
IRC: Uniaika
WWW: <a class="moz-txt-link-freetext" href="https://glitchbra.in">https://glitchbra.in</a>
RUN: BSD</pre>
</body>
</html>