<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">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.<div class=""><br class=""></div><div class="">Happily, there is a nicely working alternative to both: cabal-env from <a href="https://github.com/phadej/cabal-extras" class="">https://github.com/phadej/cabal-extras</a> works great. I use it regularly. It does what you want.</div><div class=""><br class=""></div><div class="">Happy Haskelling,</div><div class="">Richard<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Feb 18, 2021, at 3:22 AM, A. Mc. <<a href="mailto:47dragonfyre@gmail.com" class="">47dragonfyre@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class="">Hello,<div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">Thank you for your time.</div></div></div>
_______________________________________________<br class="">Haskell-Cafe mailing list<br class="">To (un)subscribe, modify options or view archives go to:<br class=""><a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" class="">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br class="">Only members subscribed via the mailman list are allowed to post.</div></blockquote></div><br class=""></div></body></html>