mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
Add an instance over empty records.
This commit is contained in:
parent
636fbd102b
commit
8b9e92440f
@ -65,3 +65,8 @@ instance (Arbitrary field, Arbitrary (Record fields)) => Arbitrary (Record (fiel
|
|||||||
arbitrary = RCons <$> arbitrary <*> arbitrary
|
arbitrary = RCons <$> arbitrary <*> arbitrary
|
||||||
|
|
||||||
shrink (RCons h t) = RCons <$> shrink h <*> shrink t
|
shrink (RCons h t) = RCons <$> shrink h <*> shrink t
|
||||||
|
|
||||||
|
instance Arbitrary (Record '[]) where
|
||||||
|
arbitrary = pure RNil
|
||||||
|
|
||||||
|
shrink _ = []
|
||||||
|
Loading…
Reference in New Issue
Block a user