Resolving dependencies... Configuring cmdargs-0.10.5... Building cmdargs-0.10.5... Preprocessing library cmdargs-0.10.5... [ 1 of 25] Compiling System.Console.CmdArgs.Implicit.Ann ( System/Console/CmdArgs/Implicit/Ann.hs, dist/build/System/Console/CmdArgs/Implicit/Ann.o ) [ 2 of 25] Compiling System.Console.CmdArgs.Implicit.UI ( System/Console/CmdArgs/Implicit/UI.hs, dist/build/System/Console/CmdArgs/Implicit/UI.o ) [ 3 of 25] Compiling System.Console.CmdArgs.Verbosity ( System/Console/CmdArgs/Verbosity.hs, dist/build/System/Console/CmdArgs/Verbosity.o ) [ 4 of 25] Compiling System.Console.CmdArgs.Implicit.Type ( System/Console/CmdArgs/Implicit/Type.hs, dist/build/System/Console/CmdArgs/Implicit/Type.o ) [ 5 of 25] Compiling System.Console.CmdArgs.Explicit.SplitJoin ( System/Console/CmdArgs/Explicit/SplitJoin.hs, dist/build/System/Console/CmdArgs/Explicit/SplitJoin.o ) [ 6 of 25] Compiling System.Console.CmdArgs.Explicit.ExpandArgsAt ( System/Console/CmdArgs/Explicit/ExpandArgsAt.hs, dist/build/System/Console/CmdArgs/Explicit/ExpandArgsAt.o ) [ 7 of 25] Compiling System.Console.CmdArgs.Explicit.Type ( System/Console/CmdArgs/Explicit/Type.hs, dist/build/System/Console/CmdArgs/Explicit/Type.o ) [ 8 of 25] Compiling System.Console.CmdArgs.Explicit.Process ( System/Console/CmdArgs/Explicit/Process.hs, dist/build/System/Console/CmdArgs/Explicit/Process.o ) [ 9 of 25] Compiling System.Console.CmdArgs.Explicit.Complete ( System/Console/CmdArgs/Explicit/Complete.hs, dist/build/System/Console/CmdArgs/Explicit/Complete.o ) [10 of 25] Compiling System.Console.CmdArgs.Helper ( System/Console/CmdArgs/Helper.hs, dist/build/System/Console/CmdArgs/Helper.o ) [11 of 25] Compiling System.Console.CmdArgs.Default ( System/Console/CmdArgs/Default.hs, dist/build/System/Console/CmdArgs/Default.o ) [12 of 25] Compiling System.Console.CmdArgs.Text ( System/Console/CmdArgs/Text.hs, dist/build/System/Console/CmdArgs/Text.o ) [13 of 25] Compiling System.Console.CmdArgs.Explicit.Help ( System/Console/CmdArgs/Explicit/Help.hs, dist/build/System/Console/CmdArgs/Explicit/Help.o ) [14 of 25] Compiling System.Console.CmdArgs.Explicit ( System/Console/CmdArgs/Explicit.hs, dist/build/System/Console/CmdArgs/Explicit.o ) [15 of 25] Compiling System.Console.CmdArgs.GetOpt ( System/Console/CmdArgs/GetOpt.hs, dist/build/System/Console/CmdArgs/GetOpt.o ) [16 of 25] Compiling Data.Generics.Any ( Data/Generics/Any.hs, dist/build/Data/Generics/Any.o ) Data/Generics/Any.hs:65:17: Warning: 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." [17 of 25] Compiling Data.Generics.Any.Prelude ( Data/Generics/Any/Prelude.hs, dist/build/Data/Generics/Any/Prelude.o ) [18 of 25] Compiling System.Console.CmdArgs.Implicit.Reader ( System/Console/CmdArgs/Implicit/Reader.hs, dist/build/System/Console/CmdArgs/Implicit/Reader.o ) [19 of 25] Compiling System.Console.CmdArgs.Annotate ( System/Console/CmdArgs/Annotate.hs, dist/build/System/Console/CmdArgs/Annotate.o ) [20 of 25] Compiling System.Console.CmdArgs.Implicit.Local ( System/Console/CmdArgs/Implicit/Local.hs, dist/build/System/Console/CmdArgs/Implicit/Local.o ) [21 of 25] Compiling System.Console.CmdArgs.Implicit.Reform ( System/Console/CmdArgs/Implicit/Reform.hs, dist/build/System/Console/CmdArgs/Implicit/Reform.o ) [22 of 25] Compiling System.Console.CmdArgs.Implicit.Global ( System/Console/CmdArgs/Implicit/Global.hs, dist/build/System/Console/CmdArgs/Implicit/Global.o ) [23 of 25] Compiling System.Console.CmdArgs.Implicit ( System/Console/CmdArgs/Implicit.hs, dist/build/System/Console/CmdArgs/Implicit.o ) [24 of 25] Compiling System.Console.CmdArgs.Quote ( System/Console/CmdArgs/Quote.hs, dist/build/System/Console/CmdArgs/Quote.o ) [25 of 25] Compiling System.Console.CmdArgs ( System/Console/CmdArgs.hs, dist/build/System/Console/CmdArgs.o ) In-place registering cmdargs-0.10.5... Running Haddock for cmdargs-0.10.5... Running hscolour for cmdargs-0.10.5... Preprocessing library cmdargs-0.10.5... Preprocessing library cmdargs-0.10.5... dist/build/tmp-29525/Data/Generics/Any.hs:65:17: Warning: 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." Haddock coverage: 50% ( 1 / 2) in 'System.Console.CmdArgs.Implicit.Ann' 100% ( 21 / 21) in 'System.Console.CmdArgs.Implicit.UI' 100% ( 8 / 8) in 'System.Console.CmdArgs.Verbosity' 25% ( 2 / 8) in 'System.Console.CmdArgs.Implicit.Type' 67% ( 2 / 3) in 'System.Console.CmdArgs.Explicit.SplitJoin' 50% ( 1 / 2) in 'System.Console.CmdArgs.Explicit.ExpandArgsAt' 86% ( 24 / 28) in 'System.Console.CmdArgs.Explicit.Type' 50% ( 1 / 2) in 'System.Console.CmdArgs.Explicit.Process' 60% ( 3 / 5) in 'System.Console.CmdArgs.Explicit.Complete' 100% ( 8 / 8) in 'System.Console.CmdArgs.Helper' 100% ( 2 / 2) in 'System.Console.CmdArgs.Default' 100% ( 5 / 5) in 'System.Console.CmdArgs.Text' 67% ( 2 / 3) in 'System.Console.CmdArgs.Explicit.Help' 93% ( 43 / 46) in 'System.Console.CmdArgs.Explicit' 100% ( 8 / 8) in 'System.Console.CmdArgs.GetOpt' 4% ( 1 / 26) in 'Data.Generics.Any' 0% ( 0 / 20) in 'Data.Generics.Any.Prelude' 0% ( 0 / 3) in 'System.Console.CmdArgs.Implicit.Reader' 100% ( 17 / 17) in 'System.Console.CmdArgs.Annotate' 9% ( 1 / 11) in 'System.Console.CmdArgs.Implicit.Local' 0% ( 0 / 2) in 'System.Console.CmdArgs.Implicit.Reform' 0% ( 0 / 2) in 'System.Console.CmdArgs.Implicit.Global' 100% ( 50 / 50) in 'System.Console.CmdArgs.Implicit' 100% ( 9 / 9) in 'System.Console.CmdArgs.Quote' 100% ( 2 / 2) in 'System.Console.CmdArgs' Warning: System.Console.CmdArgs.Implicit: could not find link destinations for: System.Console.CmdArgs.Implicit.Type.CmdArgsPrivate GHC.IO.Handle.Types.Handle__ Documentation created: dist/doc/html/cmdargs/index.html Installing library in /srv/hackage/var/build/tmp-install/lib/x86_64-linux-ghc-7.6.3/cmdargs-0.10.5 Registering cmdargs-0.10.5... Installed cmdargs-0.10.5 Configuring language-slice-0.3.0.0... Building language-slice-0.3.0.0... Preprocessing library language-slice-0.3.0.0... [1 of 2] Compiling Language.Slice.Syntax.AST ( src/Language/Slice/Syntax/AST.hs, dist/build/Language/Slice/Syntax/AST.o ) [2 of 2] Compiling Language.Slice.Syntax.Parser ( src/Language/Slice/Syntax/Parser.hs, dist/build/Language/Slice/Syntax/Parser.o ) In-place registering language-slice-0.3.0.0... Running Haddock for language-slice-0.3.0.0... Running hscolour for language-slice-0.3.0.0... Preprocessing library language-slice-0.3.0.0... Preprocessing library language-slice-0.3.0.0... Haddock coverage: 0% ( 0 / 11) in 'Language.Slice.Syntax.AST' 0% ( 0 / 14) in 'Language.Slice.Syntax.Parser' Warning: Language.Slice.Syntax.Parser: could not find link destinations for: Language.Slice.Syntax.Parser.Parser Documentation created: dist/doc/html/language-slice/index.html Installing library in /srv/hackage/var/build/tmp-install/lib/x86_64-linux-ghc-7.6.3/language-slice-0.3.0.0 Registering language-slice-0.3.0.0... Installed language-slice-0.3.0.0 Downloading slice-cpp-gen-0.1.0.0... Configuring slice-cpp-gen-0.1.0.0... Building slice-cpp-gen-0.1.0.0... Preprocessing executable 'slice-cpp-gen' for slice-cpp-gen-0.1.0.0... [1 of 1] Compiling Main ( src/slice-cpp-gen.hs, dist/build/slice-cpp-gen/slice-cpp-gen-tmp/Main.o ) src/slice-cpp-gen.hs:34:57: Couldn't match expected type `[Char]' with actual type `Ident' In the first argument of `(++)', namely `nm' In the second argument of `()', namely `nm ++ "I.h"' In the expression: trgtdir nm ++ "I.h" src/slice-cpp-gen.hs:34:102: Couldn't match type `Ident' with `[Char]' Expected type: [String] Actual type: [Ident] In the first argument of `genH', namely `ns' In the second argument of `($)', namely `genH ns nm mthds' In the expression: BLB.toLazyByteString $ genH ns nm mthds src/slice-cpp-gen.hs:34:105: Couldn't match type `Ident' with `[Char]' Expected type: String Actual type: Ident In the second argument of `genH', namely `nm' In the second argument of `($)', namely `genH ns nm mthds' In the expression: BLB.toLazyByteString $ genH ns nm mthds src/slice-cpp-gen.hs:35:57: Couldn't match expected type `[Char]' with actual type `Ident' In the first argument of `(++)', namely `nm' In the second argument of `()', namely `nm ++ "I.cpp"' In the expression: trgtdir nm ++ "I.cpp" src/slice-cpp-gen.hs:35:102: Couldn't match type `Ident' with `[Char]' Expected type: [String] Actual type: [Ident] In the first argument of `genCpp', namely `ns' In the second argument of `($)', namely `genCpp ns nm mthds' In the expression: BLB.toLazyByteString $ genCpp ns nm mthds src/slice-cpp-gen.hs:35:105: Couldn't match expected type `[Char]' with actual type `Ident' In the second argument of `genCpp', namely `nm' In the second argument of `($)', namely `genCpp ns nm mthds' In the expression: BLB.toLazyByteString $ genCpp ns nm mthds src/slice-cpp-gen.hs:76:26: Constructor `MethodDecl' should have 5 arguments, but has been given 4 In the pattern: MethodDecl tp nm flds _ In an equation for `genMethodHead': genMethodHead scope (MethodDecl tp nm flds _) = genType tp <> " " <> scope <> fromString nm <> "(" <> genFields flds <> (if null flds then "" else ", ") <> "const Ice::Current& current)" In an equation for `sliceCppGen': sliceCppGen icefile trgtdir decl = go [] decl where go ns (ModuleDecl mName decls) = concatMap (go (ns ++ [mName])) decls go ns (InterfaceDecl nm ext mthds) = [(trgtdir nm ++ "I.h", BLB.toLazyByteString $ genH ns nm mthds), ....] go ns _ = [] genH :: [String] -> String -> [MethodDecl] -> BLB.Builder genH ns nm mthds = let ... in genIfDef (ns ++ [...]) ctnt genCpp ns nm mthds = let ... in genInclds [...] <> genNs "" ns mthdsCont .... src/slice-cpp-gen.hs:78:15: Constructor `FieldDecl' should have 3 arguments, but has been given 2 In the pattern: FieldDecl tp nm In an equation for `genField': genField (FieldDecl tp nm) = passRefOrVal tp <> " " <> fromString nm In an equation for `sliceCppGen': sliceCppGen icefile trgtdir decl = go [] decl where go ns (ModuleDecl mName decls) = concatMap (go (ns ++ [mName])) decls go ns (InterfaceDecl nm ext mthds) = [(trgtdir nm ++ "I.h", BLB.toLazyByteString $ genH ns nm mthds), ....] go ns _ = [] genH :: [String] -> String -> [MethodDecl] -> BLB.Builder genH ns nm mthds = let ... in genIfDef (ns ++ [...]) ctnt genCpp ns nm mthds = let ... in genInclds [...] <> genNs "" ns mthdsCont .... src/slice-cpp-gen.hs:92:48: Couldn't match type `NsQualIdent' with `[Char]' Expected type: String Actual type: NsQualIdent In the first argument of `fromString', namely `nm' In the expression: fromString nm In an equation for `genType': genType (STUserDefined nm) = fromString nm src/slice-cpp-gen.hs:93:48: Couldn't match type `NsQualIdent' with `[Char]' Expected type: String Actual type: NsQualIdent In the first argument of `fromString', namely `nm' In the first argument of `(<>)', namely `fromString nm' In the expression: fromString nm <> "Prx" src/slice-cpp-gen.hs:103:8: Couldn't match expected type `BS.ByteString -> Either [Char] [SliceDecl]' with actual type `parsec-3.1.3:Text.Parsec.Prim.ParsecT BS.ByteString () transformers-0.3.0.0:Data.Functor.Identity.Identity SliceDecl' The function `SlcP.parseSlice' is applied to one argument, but its type `Language.Slice.Syntax.Parser.Parser SliceDecl' has none In the expression: SlcP.parseSlice slcData In a stmt of a 'do' block: case SlcP.parseSlice slcData of { Left err -> putStrLn (err ++ "\ \exiting...") >> exitFailure Right ast -> do { let ...; mapM_ wrtr fileData } } Failed to install slice-cpp-gen-0.1.0.0 cabal: Error: some packages failed to install: slice-cpp-gen-0.1.0.0 failed during the building phase. The exception was: ExitFailure 1