mirror of
https://github.com/github/semantic.git
synced 2024-11-24 08:54:07 +03:00
Add an ArbitrarySyntax type.
This commit is contained in:
parent
a71a4d2e36
commit
c7dbd6e79b
@ -16,6 +16,9 @@ import Test.QuickCheck
|
||||
newtype ArbitraryTerm = ArbitraryTerm (Term String ())
|
||||
deriving (Show, Eq)
|
||||
|
||||
newtype ArbitrarySyntax a f = ArbitrarySyntax (Syntax a f)
|
||||
deriving (Show, Eq)
|
||||
|
||||
instance Arbitrary ArbitraryTerm where
|
||||
arbitrary = oneof [ ArbitraryTerm . (() :<) . Leaf <$> arbitrary ]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user