We are new users trying to use random numbers in a new stack project, but cannot import System.Random
. It doesn't seem to be in the curated set(?)
We've got a new stack project setup as in the user manual. We've edited the cabal file putting random
in library build depends, and later put - random-1.1
in the yaml extra-deps. However after stack build it reaches Main.hs but then fails with
Failed to load interface for System.Random
It is a member of the hidden package random-1.1
How do we get a simple working random package in there.