找不到模块,它是隐藏包haskell98的成员

use*_*210 20 import hidden haskell

当我尝试用import IO或编译一个简单的源文件时import Random,构建失败并显示如下错误消息:

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
Run Code Online (Sandbox Code Playgroud)

scv*_*lex 24

模块名称在某些时候发生了变化.你可能想import System.IO和import System.Random来代替.

以下是GHC 7.6.1中标准库的模块层次结构.

  • 把我的答案标记为已接受!(单击旁边的空复选标记) (8认同)
  • 或者,使用`-package haskell98 -hide-package base -hide-package array`进行编译. (2认同)