升级到ghc 7.4之后,我不得不import System从各种脚本中删除,但这使得它们与GHC 6.0中的runhaskell不兼容,GHC 6.0仍在许多环境中使用.
有没有办法支持这两个版本?
我import System在ghc 7.4中运行脚本时得到的消息:
% ./script.hs
Could not find module `System'
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)
| 归档时间: |
|
| 查看次数: |
635 次 |
| 最近记录: |