1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 06:41:45 +03:00

Define a Listable instance over Patch.

This commit is contained in:
Rob Rix 2017-01-05 14:46:18 -05:00
parent 8c566860ee
commit d80ea55a59

View File

@ -20,3 +20,6 @@ instance Arbitrary a => Arbitrary (Patch a) where
instance Listable1 Patch where
liftTiers t = liftCons1 t Insert \/ liftCons1 t Delete \/ liftCons2 t t Replace
instance Listable a => Listable (Patch a) where
tiers = tiers1