Skip to content

System.Random doesn't exist by default #73

@00-kat

Description

@00-kat

Describe the bug
The original LYAH states that the Haskell Platform should be installed. It's obviously outdated and was replaced with GHCup in this fork. However, System.Random (from the random package) used in the I/O chapter, which ships with the Haskell Platform, isn't installed by default if you use GHCup, and needs to be explicitly installed with Stack/Cabal/idk.

To Reproduce
Run import System.Random in GHCi, when attempting to follow this chapter.

Expected behavior
How it should be installed is mentioned in the chapter on I/O.
I'm not too familiar with Haskell tooling, but cabal update && cabal install --lib random worked for me, but other sources on the web recommended using stack instead, and many recommended creating a proper project with cabal/stack.

(P.S. I don't think the bug report template is that applicable for this project, because issues with the content are more likely than issues with the web page rendering)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions