21

When I try to compile a simple source file with import IO or import Random, the build fails with an error message like this:

Could not find module 'IO'
It is a member of the hidden package 'haskell98-2.0.0.1'
Use -v to see a list of the files searched for
hammar
  • 138,522
  • 17
  • 304
  • 385
user2301210
  • 399
  • 3
  • 12

1 Answers1

25

The module names changed at some point. You probably want import System.IO and import System.Random instead.

Here is the module hierarchy for the standard libraries in GHC 7.6.1.

scvalex
  • 14,931
  • 2
  • 34
  • 43