1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 10:15:55 +03:00

Define a Listable1 instance for Context.

This commit is contained in:
Rob Rix 2017-09-25 19:20:01 -04:00
parent aae77f6e0e
commit f274a9dd7d

View File

@ -307,6 +307,9 @@ instance Listable1 Statement.If where
instance Listable1 Statement.Return where
liftTiers tiers = liftCons1 tiers Statement.Return
instance Listable1 Syntax.Context where
liftTiers tiers = liftCons2 (liftTiers tiers) tiers Syntax.Context
instance Listable1 Syntax.Empty where
liftTiers _ = cons0 Syntax.Empty