Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not find module, it is a member of the hidden package haskell98

Tags:

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
like image 841
user2301210 Avatar asked Apr 20 '13 04:04

user2301210


1 Answers

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.

like image 106
scvalex Avatar answered Oct 14 '22 10:10

scvalex