mirror of
https://github.com/github/semantic.git
synced 2024-11-24 00:42:33 +03:00
Shrink arbitrary records.
This commit is contained in:
parent
656d8318ad
commit
9b8e9305e4
@ -1,4 +1,4 @@
|
||||
{-# LANGUAGE DataKinds #-}
|
||||
{-# LANGUAGE DataKinds, GADTs #-}
|
||||
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
||||
module Data.Record.Arbitrary where
|
||||
|
||||
@ -8,3 +8,5 @@ import Test.QuickCheck
|
||||
|
||||
instance Arbitrary fields => Arbitrary (Record '[fields]) where
|
||||
arbitrary = RCons <$> arbitrary <*> pure RNil
|
||||
|
||||
shrink (RCons h t) = RCons <$> shrink h <*> pure t
|
||||
|
Loading…
Reference in New Issue
Block a user