开发者

make: Could not find module 'System'

开发者 https://www.devze.com 2023-01-31 04:35 出处:网络
Yesterday I had a failing darcs install with cabal, to开发者_StackOverflow中文版day I get this when running ghc --make node.hs:

Yesterday I had a failing darcs install with cabal, to开发者_StackOverflow中文版day I get this when running ghc --make node.hs:

node.hs:13:8: Could not find module `System': Use -v to see a list of the files searched for.

Somewhere along the lines cabal seem to have borked it's system module. What can I do to repair this?

I use version 7.0.1 of ghc on OSX.


GHC 7 uses the brand-new Haskell 2010 standard. Thus, it doesn't includes the legacy modules anymore. The recomment way is to use the new modules (like System.IO) instead or use the -package haskell98 switch to enable the support again. For sure there is also a LANGUAGE pragma to do this.

0

精彩评论

暂无评论...
验证码 换一张
取 消