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 syb-0.7... Building syb-0.7... Configuring utf8-string-1.0.1.1... Installed mtl-2.2.1 Building utf8-string-1.0.1.1... Configuring text-1.2.2.2... Installed syb-0.7 Building text-1.2.2.2... Configuring old-time-1.1.0.3... Installed utf8-string-1.0.1.1 Building old-time-1.1.0.3... Installed old-time-1.1.0.3 Installed text-1.2.2.2 Configuring polyparse-1.12... Configuring parsec-3.1.11... Building parsec-3.1.11... Building polyparse-1.12... Installed parsec-3.1.11 Configuring protocol-buffers-2.4.2... Building protocol-buffers-2.4.2... Installed polyparse-1.12 Configuring cpphs-1.20.8... Building cpphs-1.20.8... Installed cpphs-1.20.8 Configuring haskell-src-exts-1.19.1... Building haskell-src-exts-1.19.1... Installed protocol-buffers-2.4.2 Configuring protocol-buffers-descriptor-2.4.2... Building protocol-buffers-descriptor-2.4.2... Installed protocol-buffers-descriptor-2.4.2 Installed haskell-src-exts-1.19.1 Configuring hprotoc-2.4.2... Building hprotoc-2.4.2... Failed to install hprotoc-2.4.2 Build log ( /home/builder/.cabal/logs/hprotoc-2.4.2.log ): cabal: Entering directory '/tmp/cabal-tmp-19157/hprotoc-2.4.2' Configuring hprotoc-2.4.2... Building hprotoc-2.4.2... Preprocessing library hprotoc-2.4.2... [ 1 of 13] Compiling Text.ProtocolBuffers.ProtoCompile.Lexer ( dist/build/Text/ProtocolBuffers/ProtoCompile/Lexer.hs, dist/build/Text/ProtocolBuffers/ProtoCompile/Lexer.o ) Text/ProtocolBuffers/ProtoCompile/Lexer.x:5:1: warning: [-Wdeprecations] Module ‘Control.Monad.Error’ is deprecated: Use Control.Monad.Except instead templates/wrappers.hs:12:1: warning: [-Wunused-imports] The import of ‘Data.Word’ is redundant except perhaps to import instances from ‘Data.Word’ To import instances alone, use: import Data.Word() templates/wrappers.hs:16:1: warning: [-Wunused-imports] The qualified import of ‘Data.Char’ is redundant except perhaps to import instances from ‘Data.Char’ To import instances alone, use: import Data.Char() templates/wrappers.hs:157:22: warning: [-Wunused-matches] Defined but not used: ‘c’ templates/wrappers.hs:462:23: warning: [-Wname-shadowing] This binding for ‘str’ shadows the existing binding bound at templates/wrappers.hs:461:16 templates/wrappers.hs:465:38: warning: [-Wname-shadowing] This binding for ‘line’ shadows the existing binding defined at Text/ProtocolBuffers/ProtoCompile/Lexer.x:60:1 templates/wrappers.hs:466:32: warning: [-Wunused-matches] Defined but not used: ‘len’ [ 2 of 13] Compiling Text.ProtocolBuffers.ProtoCompile.Instances ( Text/ProtocolBuffers/ProtoCompile/Instances.hs, dist/build/Text/ProtocolBuffers/ProtoCompile/Instances.o ) [ 3 of 13] Compiling Text.ProtocolBuffers.ProtoCompile.Parser ( Text/ProtocolBuffers/ProtoCompile/Parser.hs, dist/build/Text/ProtocolBuffers/ProtoCompile/Parser.o ) Text/ProtocolBuffers/ProtoCompile/Parser.hs:388:28: warning: [-Wname-shadowing] This binding for ‘s’ shadows the existing binding bound at Text/ProtocolBuffers/ProtoCompile/Parser.hs:386:39 Text/ProtocolBuffers/ProtoCompile/Parser.hs:592:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: syntax :: Text.Parsec.Prim.ParsecT [Lexed] D.FileDescriptorProto.FileDescriptorProto Data.Functor.Identity.Identity () [ 4 of 13] Compiling Text.ProtocolBuffers.ProtoCompile.Identifiers ( Text/ProtocolBuffers/ProtoCompile/Identifiers.hs, dist/build/Text/ProtocolBuffers/ProtoCompile/Identifiers.o ) [ 5 of 13] Compiling Text.ProtocolBuffers.ProtoCompile.BreakRecursion ( Text/ProtocolBuffers/ProtoCompile/BreakRecursion.hs, dist/build/Text/ProtocolBuffers/ProtoCompile/BreakRecursion.o ) [ 6 of 13] Compiling Text.ProtocolBuffers.ProtoCompile.Gen ( Text/ProtocolBuffers/ProtoCompile/Gen.hs, dist/build/Text/ProtocolBuffers/ProtoCompile/Gen.o ) Text/ProtocolBuffers/ProtoCompile/Gen.hs:77:8: error: Not in scope: type constructor or class ‘SrcLoc’ cabal: Leaving directory '/tmp/cabal-tmp-19157/hprotoc-2.4.2' cabal: Error: some packages failed to install: hprotoc-2.4.2 failed during the building phase. The exception was: ExitFailure 1