Hi,
It's not possible to build the Happy glr examples using GHC 6.10.3 and Happy 1.18.4:
or GHC 6.10.1 and Happy 1.18.2:
When I try to manually build something out of a .y file, I keep getting:
cetin@sweethome:~/.cabal/packages/hackage.haskell.org/happy/1.18.2/happy-1.18.2/examples/glr$ find | grep -E "y$" | xargs -n 1 echo happy -gcal
happy -gcal ./packing/Expr.yhappy -gcal ./highly-ambiguous/Expr.y
happy -gcal ./expr-eval/Expr.yhappy -gcal ./expr-monad/Expr.y
happy -gcal ./nlp/English.yhappy -gcal ./hidden-leftrec/Expr.y
happy -gcal ./expr-tree/Expr.yhappy -gcal ./bio-eg/Bio.y
cetin@sweethome:~/.cabal/packages/hackage.haskell.org/happy/1.18.2/happy-1.18.2/examples/glr$ find | grep -E "y$" | xargs -n 1 happy -gcal
reduce/reduce conflicts: 2happy: src/ProduceGLRCode.lhs:190:11-76: Irrefutable pattern failed for pattern (pre, drop_me : post)
shift/reduce conflicts: 7reduce/reduce conflicts: 1
happy: src/ProduceGLRCode.lhs:190:11-76: Irrefutable pattern failed for pattern (pre, drop_me : post)
shift/reduce conflicts: 9happy: src/ProduceGLRCode.lhs:190:11-76: Irrefutable pattern failed for pattern (pre, drop_me : post)
shift/reduce conflicts: 9happy: src/ProduceGLRCode.lhs:190:11-76: Irrefutable pattern failed for pattern (pre, drop_me : post)
shift/reduce conflicts: 2happy: src/ProduceGLRCode.lhs:190:11-76: Irrefutable pattern failed for pattern (pre, drop_me : post)
shift/reduce conflicts: 4reduce/reduce conflicts: 1
happy: src/ProduceGLRCode.lhs:190:11-76: Irrefutable pattern failed for pattern (pre, drop_me : post)
shift/reduce conflicts: 9happy: src/ProduceGLRCode.lhs:190:11-76: Irrefutable pattern failed for pattern (pre, drop_me : post)
unused rules: 20shift/reduce conflicts: 35
reduce/reduce conflicts: 68happy: src/ProduceGLRCode.lhs:190:11-76: Irrefutable pattern failed for pattern (pre, drop_me : post)
Does anyone have solution for this? The irrefutable pattern failure issue is especially bothersome for me as I ran into it in a Fortran grammar I'm writing and got stuck.
Best Regards,
Cetin Sert