ANNOUNCE: protocol-buffers-0.2.9 for Haskell is ready
Lennart Kolmodin
kolmodin at dtek.chalmers.se
Sun Sep 21 09:36:40 EDT 2008
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/hprotoc-0.2.9-genparser.patch
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
More information about the Libraries
mailing list