Resolving dependencies... Configuring mtl-2.2.1... Configuring old-locale-1.0.0.7... Building mtl-2.2.1... Building old-locale-1.0.0.7... Installed old-locale-1.0.0.7 Configuring readline-1.0.3.0... Building readline-1.0.3.0... Configuring old-time-1.1.0.3... Installed mtl-2.2.1 Building old-time-1.1.0.3... Installed readline-1.0.3.0 Configuring regex-base-0.93.2... Building regex-base-0.93.2... Installed old-time-1.1.0.3 Installed regex-base-0.93.2 Configuring regex-posix-0.95.2... Building regex-posix-0.95.2... Installed regex-posix-0.95.2 Configuring regex-compat-0.95.1... Building regex-compat-0.95.1... Installed regex-compat-0.95.1 Downloading mkcabal-0.2... Configuring mkcabal-0.2... Building mkcabal-0.2... Failed to install mkcabal-0.2 Build log ( /home/builder/.cabal/logs/mkcabal-0.2.log ): cabal: Entering directory '/tmp/cabal-tmp-16065/mkcabal-0.2' [1 of 1] Compiling Main ( /tmp/cabal-tmp-16065/mkcabal-0.2/dist/setup/setup.hs, /tmp/cabal-tmp-16065/mkcabal-0.2/dist/setup/Main.o ) Linking /tmp/cabal-tmp-16065/mkcabal-0.2/dist/setup/setup ... Configuring mkcabal-0.2... Warning: No 'build-type' specified. If you do not need a custom Setup.hs or ./configure script then use 'build-type: Simple'. Building mkcabal-0.2... Preprocessing executable 'mkcabal' for mkcabal-0.2... mkcabal.hs:1:16: warning: -fglasgow-exts is deprecated: Use individual extensions instead [1 of 2] Compiling Licenses ( Licenses.hs, dist/build/mkcabal/mkcabal-tmp/Licenses.o ) [2 of 2] Compiling Main ( mkcabal.hs, dist/build/mkcabal/mkcabal-tmp/Main.o ) mkcabal.hs:359:14: error: • Ambiguous type variable ‘e0’ arising from a use of ‘handle’ prevents the constraint ‘(Exception e0)’ from being solved. Probable fix: use a type annotation to specify what ‘e0’ should be. These potential instances exist: instance Exception NestedAtomically -- Defined in ‘Control.Exception.Base’ instance Exception NoMethodError -- Defined in ‘Control.Exception.Base’ instance Exception NonTermination -- Defined in ‘Control.Exception.Base’ ...plus 17 others ...plus two instances involving out-of-scope types (use -fprint-potential-instances to see them all) • In the expression: handle (\ _ -> return $ pair defNameAndMail) In the expression: handle (\ _ -> return $ pair defNameAndMail) $ do { env <- getEnvironment; let p | Just e <- lookup "DARCS_EMAIL" env = break (== '<') e | Just e <- lookup "EMAIL" env = ... | otherwise = pair defNameAndMail; return p } In a stmt of a 'do' block: if he then readFile authorHome >>= return . nameAndMail else handle (\ _ -> return $ pair defNameAndMail) $ do { env <- getEnvironment; let p | Just e <- lookup "DARCS_EMAIL" env = ... | Just e <- lookup "EMAIL" env = ... | otherwise = ...; return p } cabal: Leaving directory '/tmp/cabal-tmp-16065/mkcabal-0.2' cabal: Error: some packages failed to install: mkcabal-0.2 failed during the building phase. The exception was: ExitFailure 1