*** 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:21:56: Couldn't match expected type `()' against inferred type `ExitCode' Expected type: IO () Inferred type: IO ExitCode In the `runTests' field of a record In the first argument of `defaultMainWithHooks', namely `defaultUserHooks {runTests = runTestScript}' *** 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:21:56: Couldn't match expected type `()' against inferred type `ExitCode' Expected type: IO () Inferred type: IO ExitCode In the `runTests' field of a record In the first argument of `defaultMainWithHooks', namely `defaultUserHooks {runTests = runTestScript}'