ghc 7.4にアップグレードした後import System
、さまざまなスクリプトから削除する必要がありましたが、それにより、多くの環境でまだ使用されているGHC6.0のrunhaskellと互換性がなくなります。
両方のバージョンをサポートする方法はありますか?
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.