1
1
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:
Rob Rix 2016-06-23 09:46:44 -04:00
parent 656d8318ad
commit 9b8e9305e4

View File

@ -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