Skip to content

Instantly share code, notes, and snippets.

@kgadek
Created August 12, 2014 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kgadek/2ebf2a4a0c6f91af76e0 to your computer and use it in GitHub Desktop.
Save kgadek/2ebf2a4a0c6f91af76e0 to your computer and use it in GitHub Desktop.
❯ pwd
~/tmp/hprotoc-2.0.15
❯ cabal install
Resolving dependencies...
Configuring protocol-buffers-descriptor-2.0.14...
Building protocol-buffers-descriptor-2.0.14...
Installed protocol-buffers-descriptor-2.0.14
Configuring hprotoc-2.0.15...
Building hprotoc-2.0.15...
Failed to install hprotoc-2.0.15
Build log ( /Users/konrad/.cabal/logs/hprotoc-2.0.15.log ):
Configuring hprotoc-2.0.15...
Building hprotoc-2.0.15...
Preprocessing library hprotoc-2.0.15...
on the commandline: Warning:
-XDoRec is deprecated: use -XRecursiveDo or pragma {-# LANGUAGE RecursiveDo #-} instead
[ 1 of 13] Compiling Text.ProtocolBuffers.ProtoCompile.Identifiers ( Text/ProtocolBuffers/ProtoCompile/Identifiers.hs, dist/build/Text/ProtocolBuffers/ProtoCompile/Identifiers.o )
Text/ProtocolBuffers/ProtoCompile/Identifiers.hs:54:1: Warning:
Top-level binding with no type signature:
dotUtf8 :: Utf8 -> Utf8 -> Utf8
Text/ProtocolBuffers/ProtoCompile/Identifiers.hs:56:1: Warning:
Top-level binding with no type signature:
dotString :: [Char] -> [Char] -> [Char]
Text/ProtocolBuffers/ProtoCompile/Identifiers.hs:138:14: Warning:
Defined but not used: ‘f’
Text/ProtocolBuffers/ProtoCompile/Identifiers.hs:139:14: Warning:
Defined but not used: ‘f’
Text/ProtocolBuffers/ProtoCompile/Identifiers.hs:193:1: Warning:
Top-level binding with no type signature: fixUp :: [Char] -> [Char]
Text/ProtocolBuffers/ProtoCompile/Identifiers.hs:160:3: Warning:
Pattern match(es) are non-exhaustive
In an equation for ‘go’: Patterns not matched: _ []
Text/ProtocolBuffers/ProtoCompile/Identifiers.hs:165:3: Warning:
Pattern match(es) are non-exhaustive
In an equation for ‘go’: Patterns not matched: _ []
Text/ProtocolBuffers/ProtoCompile/Identifiers.hs:202:1: Warning:
Pattern match(es) are non-exhaustive
In an equation for ‘fixLow’: Patterns not matched: []
[ 2 of 13] Compiling Text.ProtocolBuffers.ProtoCompile.BreakRecursion ( Text/ProtocolBuffers/ProtoCompile/BreakRecursion.hs, dist/build/Text/ProtocolBuffers/ProtoCompile/BreakRecursion.o )
[ 3 of 13] Compiling Text.ProtocolBuffers.ProtoCompile.Gen ( Text/ProtocolBuffers/ProtoCompile/Gen.hs, dist/build/Text/ProtocolBuffers/ProtoCompile/Gen.o )
Text/ProtocolBuffers/ProtoCompile/Gen.hs:368:29:
Couldn't match type ‘[Exp] -> Exp’ with ‘Exp’
Expected type: (EnumCode, String) -> Exp
Actual type: (EnumCode, String) -> [Exp] -> Exp
Probable cause: ‘one’ is applied to too few arguments
In the first argument of ‘map’, namely ‘one’
In the first argument of ‘List’, namely ‘(map one values)’
Text/ProtocolBuffers/ProtoCompile/Gen.hs:369:36:
Couldn't match expected type ‘Boxed’ with actual type ‘[Exp]’
In the first argument of ‘Tuple’, namely
‘[litInt (getEnumCode v), litStr ns, lcon ns]’
In the expression:
Tuple [litInt (getEnumCode v), litStr ns, lcon ns]
In an equation for ‘one’:
one (v, ns) = Tuple [litInt (getEnumCode v), litStr ns, lcon ns]
Text/ProtocolBuffers/ProtoCompile/Gen.hs:372:57:
Couldn't match type ‘[Exp] -> Exp’ with ‘Exp’
Expected type: (EnumCode, String) -> Exp
Actual type: (EnumCode, String) -> [Exp] -> Exp
Probable cause: ‘two’ is applied to too few arguments
In the first argument of ‘map’, namely ‘two’
In the first argument of ‘List’, namely ‘(map two values)’
Text/ProtocolBuffers/ProtoCompile/Gen.hs:373:36:
Couldn't match expected type ‘Boxed’ with actual type ‘[Exp]’
In the first argument of ‘Tuple’, namely
‘[litInt (getEnumCode v), litStr ns]’
In the expression: Tuple [litInt (getEnumCode v), litStr ns]
In an equation for ‘two’:
two (v, ns) = Tuple [litInt (getEnumCode v), litStr ns]
Text/ProtocolBuffers/ProtoCompile/Gen.hs:761:53:
Couldn't match expected type ‘Pat’ with actual type ‘[Pat] -> Pat’
Probable cause: ‘PTuple’ is applied to too few arguments
In the second argument of ‘PatBind’, namely
‘(PTuple [patvar "field'Number", patvar "wire'Type"])’
In the expression:
PatBind
src
(PTuple [patvar "field'Number", patvar "wire'Type"])
Nothing
(UnGuardedRhs (pvar "splitWireTag" $$ lvar "wire'Tag"))
(BDecls [])
Text/ProtocolBuffers/ProtoCompile/Gen.hs:761:60:
Couldn't match expected type ‘Boxed’ with actual type ‘[Pat]’
In the first argument of ‘PTuple’, namely
‘[patvar "field'Number", patvar "wire'Type"]’
In the second argument of ‘PatBind’, namely
‘(PTuple [patvar "field'Number", patvar "wire'Type"])’
In the expression:
PatBind
src
(PTuple [patvar "field'Number", patvar "wire'Type"])
Nothing
(UnGuardedRhs (pvar "splitWireTag" $$ lvar "wire'Tag"))
(BDecls [])
cabal: Error: some packages failed to install:
hprotoc-2.0.15 failed during the building phase. The exception was:
ExitFailure 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment