Resolving dependencies... Configuring mtl-2.2.1... Configuring old-locale-1.0.0.7... Building old-locale-1.0.0.7... Building mtl-2.2.1... Installed old-locale-1.0.0.7 Configuring old-time-1.1.0.3... Building old-time-1.1.0.3... Installed mtl-2.2.1 Configuring cmdargs-0.6.2... Building cmdargs-0.6.2... Installed old-time-1.1.0.3 Failed to install cmdargs-0.6.2 Build log ( /home/builder/.cabal/logs/cmdargs-0.6.2.log ): cabal: Entering directory '/tmp/cabal-tmp-21208/cmdargs-0.6.2' Configuring cmdargs-0.6.2... Building cmdargs-0.6.2... Preprocessing library cmdargs-0.6.2... [ 1 of 19] Compiling System.Console.CmdArgs.Verbosity ( System/Console/CmdArgs/Verbosity.hs, dist/build/System/Console/CmdArgs/Verbosity.o ) [ 2 of 19] Compiling System.Console.CmdArgs.Implicit.Type ( System/Console/CmdArgs/Implicit/Type.hs, dist/build/System/Console/CmdArgs/Implicit/Type.o ) [ 3 of 19] Compiling System.Console.CmdArgs.Implicit.Ann ( System/Console/CmdArgs/Implicit/Ann.hs, dist/build/System/Console/CmdArgs/Implicit/Ann.o ) [ 4 of 19] Compiling System.Console.CmdArgs.Implicit.UI ( System/Console/CmdArgs/Implicit/UI.hs, dist/build/System/Console/CmdArgs/Implicit/UI.o ) [ 5 of 19] Compiling System.Console.CmdArgs.Explicit.Type ( System/Console/CmdArgs/Explicit/Type.hs, dist/build/System/Console/CmdArgs/Explicit/Type.o ) [ 6 of 19] Compiling System.Console.CmdArgs.Explicit.Process ( System/Console/CmdArgs/Explicit/Process.hs, dist/build/System/Console/CmdArgs/Explicit/Process.o ) [ 7 of 19] Compiling System.Console.CmdArgs.Default ( System/Console/CmdArgs/Default.hs, dist/build/System/Console/CmdArgs/Default.o ) [ 8 of 19] Compiling System.Console.CmdArgs.Text ( System/Console/CmdArgs/Text.hs, dist/build/System/Console/CmdArgs/Text.o ) [ 9 of 19] Compiling System.Console.CmdArgs.Explicit.Help ( System/Console/CmdArgs/Explicit/Help.hs, dist/build/System/Console/CmdArgs/Explicit/Help.o ) [10 of 19] Compiling System.Console.CmdArgs.Explicit ( System/Console/CmdArgs/Explicit.hs, dist/build/System/Console/CmdArgs/Explicit.o ) [11 of 19] Compiling System.Console.CmdArgs.GetOpt ( System/Console/CmdArgs/GetOpt.hs, dist/build/System/Console/CmdArgs/GetOpt.o ) [12 of 19] Compiling Data.Generics.Any ( Data/Generics/Any.hs, dist/build/Data/Generics/Any.o ) Data/Generics/Any.hs:65:17: warning: [-Wdeprecations] In the use of ‘tyConString’ (imported from Data.Data, but defined in Data.Typeable.Internal): Deprecated: "renamed to 'tyConName'; 'tyConModule' and 'tyConPackage' are also available." [13 of 19] Compiling Data.Generics.Any.Prelude ( Data/Generics/Any/Prelude.hs, dist/build/Data/Generics/Any/Prelude.o ) [14 of 19] Compiling System.Console.CmdArgs.Annotate ( System/Console/CmdArgs/Annotate.hs, dist/build/System/Console/CmdArgs/Annotate.o ) System/Console/CmdArgs/Annotate.hs:75:9: error: • Non type-variable argument in the constraint: MonadState [(Any, [Char], Capture ann1)] f (Use FlexibleContexts to permit this) • When checking the inferred type f :: forall (f :: * -> *) ann. MonadState [(Any, [Char], Capture ann)] f => Maybe Any -> Maybe [Char] -> Capture ann -> f (Capture ann) In an equation for ‘defaultMissing’: defaultMissing x = evalState (f Nothing Nothing x) [] where f ctor field (Many xs) = fmap Many $ mapM (f ctor field) xs f ctor field (Ann a x) = fmap (Ann a) $ f ctor field x f ctor field (Value x) = return $ Value x f (Just ctor) (Just field) (Missing x) = do { s <- get; .... } f _ _ (Missing x) = err $ "missing value encountered, but not as a field (of type " ++ show x ++ ")" f _ _ (Ctor x xs) | length (fields x) == length xs = do { ys <- zipWithM (g x) (fields x) xs; .... } f _ _ (Ctor x xs) = fmap (Ctor x) $ mapM (f Nothing Nothing) xs g ctor field x = do { y <- f (Just ctor) (Just field) x; .... } err x = error $ "System.Console.CmdArgs.Annotate.defaultMissing, " ++ x cabal: Leaving directory '/tmp/cabal-tmp-21208/cmdargs-0.6.2' cabal: Error: some packages failed to install: cmdargs-0.6.2 failed during the building phase. The exception was: ExitFailure 1 runghc-0.1 depends on cmdargs-0.6.2 which failed to install.