*** setup configure Reading installed packages... /usr/local/bin/ghc-pkg dump --global /usr/local/bin/ghc-pkg dump --user Creating setup (and its parents) /usr/local/bin/ghc -package Cabal-1.8.0.2 --make Setup.hs -o setup/setup -odir setup -hidir setup [1 of 1] Compiling Main ( Setup.hs, setup/Main.o ) Setup.hs:18:21: Couldn't match expected type `()' against inferred type `Maybe LocalBuildInfo' In the `postClean' field of a record In the first argument of `defaultMainWithHooks', namely `simpleUserHooks {preHaddock = preHaddockScript, postClean = postCleanScript}' In the expression: defaultMainWithHooks (simpleUserHooks {preHaddock = preHaddockScript, postClean = postCleanScript}) *** Trying again with preferred-versions *** setup configure Reading installed packages... /usr/local/bin/ghc-pkg dump --global /usr/local/bin/ghc-pkg dump --user Creating setup (and its parents) /usr/local/bin/ghc -package Cabal-1.8.0.2 --make Setup.hs -o setup/setup -odir setup -hidir setup [1 of 1] Compiling Main ( Setup.hs, setup/Main.o ) Setup.hs:18:21: Couldn't match expected type `()' against inferred type `Maybe LocalBuildInfo' In the `postClean' field of a record In the first argument of `defaultMainWithHooks', namely `simpleUserHooks {preHaddock = preHaddockScript, postClean = postCleanScript}' In the expression: defaultMainWithHooks (simpleUserHooks {preHaddock = preHaddockScript, postClean = postCleanScript})