Runhaskell - how to make a script compatible with ghc 7.4 and 6?

After upgrading to ghc 7.4, I had to remove import Systemfrom different scripts, but this 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 running a script with import Systemin 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.
+5
source share
2 answers

System Haskell-98, System.Cmd, System.Environment System.Exit, , , GHC 5.04, , .

+5

System - Haskell 98; (, System.Environment, System.IO System.Exit, . ), . - System Hoogle, , , , .

GHC Haskell 98 , . , Haskell 2010.

+6

All Articles