mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
Don’t bind a variable for n
.
This commit is contained in:
parent
3efa6e6ff4
commit
77c9970f25
@ -35,7 +35,7 @@ instance (Eq a, Eq annotation, Arbitrary a, Arbitrary annotation) => Arbitrary (
|
||||
arbitrary = sized boundedTerm
|
||||
where boundedTerm n = ArbitraryTerm <$> ((,) <$> arbitrary <*> boundedSyntax n)
|
||||
boundedSyntax 0 = liftM Leaf arbitrary
|
||||
boundedSyntax n = frequency
|
||||
boundedSyntax _ = frequency
|
||||
[ (1, liftM Leaf arbitrary),
|
||||
(4, liftM Indexed $ listOf arbitrary),
|
||||
(4, liftM Fixed $ listOf arbitrary),
|
||||
|
Loading…
Reference in New Issue
Block a user