
Hi all, I'm trying to cabal install hspec and I get the following: Resolving dependencies... /tmp/hspec-0.9.04062/hspec-0.9.0/Setup.lhs:2:10: Could not find module `System' It is a member of the hidden package `haskell98-2.0.0.0'. Use -v to see a list of the files searched for. cabal: Error: some packages failed to install: hspec-0.9.0 failed during the configure step. The exception was: ExitFailure 1 This is with ghc-7.2.2. Any clues how I can get around this? Cheers, Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/

On 23 Jan 2012, at 07:01, Erik de Castro Lopo wrote:
/tmp/hspec-0.9.04062/hspec-0.9.0/Setup.lhs:2:10: Could not find module `System' It is a member of the hidden package `haskell98-2.0.0.0'.
In ghc-7.2, you cannot use the haskell98 package in conjunction with the base package. The simplest solution is the replace the "import System" with the appropriate replacement module in base: most probably System.Environment, System.Exit, or similar. Regards, Malcolm
participants (2)
-
Erik de Castro Lopo
-
Malcolm Wallace