*** setup configure Creating setup (and its parents) /usr/local/bin/ghc --make Setup.hs -o setup/setup -odir setup -hidir setup [1 of 1] Compiling Main ( Setup.hs, setup/Main.o ) Setup.hs:3:60: Couldn't match expected type `()' against inferred type `GHC.IOBase.ExitCode' Expected type: IO () Inferred type: IO GHC.IOBase.ExitCode In the `runTests' field of a record In the second argument of `($)', namely `defaultUserHooks {runTests = run, preClean = clean}' *** Trying again with preferred-versions *** setup configure Creating setup (and its parents) /usr/local/bin/ghc --make Setup.hs -o setup/setup -odir setup -hidir setup [1 of 1] Compiling Main ( Setup.hs, setup/Main.o ) Setup.hs:3:60: Couldn't match expected type `()' against inferred type `GHC.IOBase.ExitCode' Expected type: IO () Inferred type: IO GHC.IOBase.ExitCode In the `runTests' field of a record In the second argument of `($)', namely `defaultUserHooks {runTests = run, preClean = clean}'