After I upgraded to ghc 7.4, I had to remove import System from various scripts, but that makes them incompatible with runhaskell from GHC 6.0, which is still used in many environments.
Is there a way to support both versions?
The message I get when I run a script with import System in 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.
The
Systemmodule was an old Haskell-98 compatibility module, and all its functionality can be found in theSystem.Cmd,System.EnvironmentandSystem.Exitmodules, which have all been available since at least as far back as GHC 5.04, so it should be a simple matter of just fixing your import statements to use some appropriate subset of those modules instead.