Take the 2-minute tour ×

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-'
Use -v to see a list of the files searched for
share|improve this question
add comment

1 Answer

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.

share|improve this answer
Alternatively, compile with -package haskell98 -hide-package base -hide-package array. –  Mikhail Glushenkov Apr 20 '13 at 5:46
oh,you are right.I'm a beginning learner.Thanks –  user2301210 Apr 20 '13 at 8:10
Mark my answer as accepted! (click the empty checkmark next to it) –  scvalex Apr 20 '13 at 8:32
add comment

Your Answer


