The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

294119 (38) [Avatar] Offline
I am using the Haskell platform setup.

When I have the line import System.Random as discussed on page 253 of the PDF, and then try to load the file into ghci, I get the following:

<no location info>: error:
Could not find module ‘System.Random’
It is not a module in the current program, or in any known package.

I am brand new to Haskell and don't know how to add this module to my setup, if that is the solution.

Thanks in advance

294119 (38) [Avatar] Offline
Ok. After fumbling around with Hoogle and Hackage I finally figured out how to download/add System.Random to my system.

I installed Haskell Platform and just assumed it would be there.

To help real Haskell newbies in the future, I would recommend the author include a howto discussion in the system setup section to cover what to do if a package to be imported in a book example is not in the local system.