Happy Parsers and constraints
19 May
2017
19 May
'17
4:32 a.m.
Hi all If I have a happy parser for an AST that is polymorphic, is there any way to put constraints on the individual rules? e.g. if I have data Foo a = Foo String a and a rule something like foo :: { (Show a) => Foo a } foo : otherrule { Foo (show $1) $1 } Because of the way the tables are constructed in happy, the Show constraint is not attached to the point where the rule RHS is applied. Is this simply impossible? Alan
3111
Age (days ago)
3111
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alan & Kim Zimmerman