
Don Stewart wrote:
haskell:
Hello one and all,
Amid much rejoicing, my Haskell version of protocol-buffer is now released (version 0.2.9).
Find it on Arch Linux,
http://aur.archlinux.org/packages.php?ID=20080
Go Go Go!
Now also available in Gentoo Linux, along with the bundled lib protocol-buffers-descriptor and the tool hprotoc. Get it from the haskell overlay * dev-haskell/protocol-buffers * dev-haskell/protocol-buffers-descriptor * dev-haskell/hprotoc It's noticeable that we too were required the -fvia-C flag to build protocol-buffers package. I'm using GHC 6.8.3 on amd64. Without it, ghc died with the following error message: /tmp/ghc20461_0/ghc20461_0.s: Assembler messages: /tmp/ghc20461_0/ghc20461_0.s:6993:0: Error: too many memory references for `movzbl' /tmp/ghc20461_0/ghc20461_0.s:6994:0: Error: suffix or operands invalid for `shl' /tmp/ghc20461_0/ghc20461_0.s:6995:0: Error: suffix or operands invalid for `or' We also apply the following (tiny) patch to get hprotoc to compile: http://code.haskell.org/gentoo/gentoo-haskell/dev-haskell/hprotoc/files/hpro... diff -rN -u old-protocol-buffers-0.2.9/hprotoc/Text/ProtocolBuffers/ProtoCompile/Parser.hs new-protocol-buffers-0.2.9/hprotoc/Text/ProtocolBuffers/ProtoCompile/Parser.hs --- old-protocol-buffers-0.2.9/hprotoc/Text/ProtocolBuffers/ProtoCompile/Parser.hs 2008-09-21 15:16:08.000000000 +0200 +++ new-protocol-buffers-0.2.9/hprotoc/Text/ProtocolBuffers/ProtoCompile/Parser.hs 2008-09-21 15:16:08.000000000 +0200 @@ -45,7 +45,7 @@ default () -type P = GenParser Lexed +type P a = GenParser Lexed a pbParse :: String -> IO (Either ParseError D.FileDescriptorProto) pbParse filename = fmap (parseProto filename) (LC.readFile filename) Cheers, Lennart Kolmodin