mirror of
https://github.com/github/semantic.git
synced 2024-12-26 00:12:29 +03:00
Use record notation to unwrap ArbitrarySyntax.
This commit is contained in:
parent
0c23f11d01
commit
6799d5eba1
@ -17,7 +17,7 @@ import Test.QuickCheck
|
|||||||
newtype ArbitraryTerm a annotation = ArbitraryTerm (Term a annotation)
|
newtype ArbitraryTerm a annotation = ArbitraryTerm (Term a annotation)
|
||||||
deriving (Show, Eq)
|
deriving (Show, Eq)
|
||||||
|
|
||||||
newtype ArbitrarySyntax a f = ArbitrarySyntax (Syntax a f)
|
newtype ArbitrarySyntax a f = ArbitrarySyntax { unSyntax :: Syntax a f }
|
||||||
deriving (Show, Eq)
|
deriving (Show, Eq)
|
||||||
|
|
||||||
instance (Arbitrary a, Arbitrary f) => Arbitrary (ArbitrarySyntax a f) where
|
instance (Arbitrary a, Arbitrary f) => Arbitrary (ArbitrarySyntax a f) where
|
||||||
|
Loading…
Reference in New Issue
Block a user