[C2hs] Compiling c2hs from darcs
Duncan Coutts
duncan.coutts at worc.ox.ac.uk
Fri Mar 9 18:25:40 EST 2007
On Fri, 2007-03-09 at 15:09 +0200, Sakari I Jokinen wrote:
> After getting c2hs from darcs and trying to compile it with ghc 6.6 I get
> the following error:
>
> [31 of 38] Compiling CParser ( c2hs/c/CParser.hs, dist/build/c2hs/c2hs-tmp/CParser.o )
>
> c2hs/c/CParser.hs:958:45:
> Couldn't match expected type `CDecl'
> against inferred type `Either CDecl CStat'
> Expected type: Reversed [CDecl]
> Inferred type: Reversed [Either CDecl CStat]
> In the first argument of `reverse', namely `happy_var_3'
> In the first argument of `CCompound', namely
> `(reverse happy_var_3)'
>
>
> Is this a known problem or should the version from darcs work and I am
> just missing something?
Ah, that'll be my fault. I'm half way through merging changes to the C
parser.
Duncan
More information about the C2hs
mailing list