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

1

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
Individualism answered 20/4, 2013 at 4:21 Comment(0)
C
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.

Crystallite answered 20/4, 2013 at 4:25 Comment(1)
Alternatively, compile with -package haskell98 -hide-package base -hide-package array.Leucine

© 2022 - 2024 — McMap. All rights reserved.