*** 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:11:60: 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 second argument of `($)', namely `defaultUserHooks {runTests = tests}' *** 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:11:60: 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 second argument of `($)', namely `defaultUserHooks {runTests = tests}'