[Haskell-beginners] Happy generated parser fails to compile.
marco-oweber at gmx.de
Sun Sep 26 16:23:05 EDT 2010
Excerpts from Rohit Garg's message of Sun Sep 26 16:58:05 +0200 2010:
> a) Could this be a bug in Happy (very unlikely, IMO) it is generating
> code that has type mismatches.
If you posted the error (and maybe 20 surrounding lines of code it would
be easier to help you..
No, happy does not beep on them. happy is a stupid machine which
transforms your grammar into code transforming states.
Eg if you return "foo" instead of the parser result happy will correctly
create a .hs file which will then fail to compile.
Happy only copy pastes your code.
More information about the Beginners