[Haskell-cafe] There is something wrong with hprotoc-0.3.1
haskell at list.mightyreason.com
Tue Oct 14 05:47:05 EDT 2008
Wow...I have a user. I wrote hprotoc, and I am adding support for
protobuf-2.0.2 options in the next version of protocol-buffers and hprotoc. Let
me see if I can help....
I just tested the tarball again and it "Works for me". I bet you are compiling
without the necessary ghc flags. Cabal should be including those. I am using
ghc-6.8.3 with Cabal-22.214.171.124 and tested with the command:
> cabal-install --verbose --user hprotoc-0.3.1.tar.gz
Of course, I already have protocol-buffer-0.3.1 and
The line 48 in my copy of Parser.hs says
> type P = GenParser Lexed
Changing that to
> type P a = GenParser Lexed a
still compiles and works for me. But I would be surprised if that fixed all
Thanks for asking for help instead of giving up,
> $ cabal --version
> cabal-install version 0.5.2
> using version 126.96.36.199 of the Cabal library
> $ ghc --version
> The Glorious Glasgow Haskell Compilation System, version 6.8.3
> Don Stewart wrote:
>>> I wanted to install this package. Well,
>>> Building hprotoc-0.3.1...
>>> [3 of 7] Compiling Text.ProtocolBuffers.ProtoCompile.Parser ...
>>> Type synonym `GenParser' should have 2 arguments, but has been
>>> given 1
>>> In the type synonym declaration for `P'
>> Works for me with GHC 6.10,
>> What's your system configuration? Which GHC, which version of Cabal,
>> which libraries already installed?
>> -- Don
More information about the Haskell-Cafe