1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

Sort the atoms.

This commit is contained in:
Rob Rix 2019-07-23 15:27:03 -04:00
parent ac3f487703
commit 3d65ae97ef
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -56,7 +56,7 @@ record :: MonadGen m => m (Term Core.Core User) -> m (Term Core.Core User)
record bod = Core.record <$> Gen.list (Range.linear 0 5) ((,) . namedValue <$> name <*> bod)
atoms :: MonadGen m => [m (Term Core.Core User)]
atoms = [boolean, variable, pure Core.unit]
atoms = [variable, pure Core.unit, boolean]
literal :: MonadGen m => m (Term Core.Core User)
literal = Gen.recursive Gen.choice atoms [lambda literal, record literal]