1
1
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:
Rob Rix 2016-06-22 10:53:50 -04:00
parent 9a976869b2
commit b85e2f27ce

View File

@ -1,2 +1,9 @@
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Data.Gram.Arbitrary where
import Data.Gram
import Prologue
import Test.QuickCheck
instance Arbitrary label => Arbitrary (Gram label) where
arbitrary = Gram <$> arbitrary <*> arbitrary