mirror of
https://github.com/github/semantic.git
synced 2024-12-30 02:14:20 +03:00
Add an Arbitrary instance over Grams.
This commit is contained in:
parent
9a976869b2
commit
b85e2f27ce
@ -1,2 +1,9 @@
|
|||||||
|
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
||||||
module Data.Gram.Arbitrary where
|
module Data.Gram.Arbitrary where
|
||||||
|
|
||||||
|
import Data.Gram
|
||||||
|
import Prologue
|
||||||
|
import Test.QuickCheck
|
||||||
|
|
||||||
|
instance Arbitrary label => Arbitrary (Gram label) where
|
||||||
|
arbitrary = Gram <$> arbitrary <*> arbitrary
|
||||||
|
Loading…
Reference in New Issue
Block a user