mirror of
https://github.com/github/semantic.git
synced 2024-12-01 00:33:59 +03:00
Add an Arbitrary instance over Separated.
This commit is contained in:
parent
1e360dca67
commit
df8496a839
@ -9,3 +9,6 @@ instance Arbitrary a => Arbitrary (Adjoined a) where
|
||||
|
||||
newtype Separated a = Separated { unSeparated :: a }
|
||||
deriving (Eq, Functor, Show)
|
||||
|
||||
instance Arbitrary a => Arbitrary (Separated a) where
|
||||
arbitrary = Separated <$> arbitrary
|
||||
|
Loading…
Reference in New Issue
Block a user