1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 01:42:43 +03:00

Shrink Adjoined.

This commit is contained in:
Rob Rix 2016-03-15 11:46:15 -04:00
parent 493f55aa65
commit 7da4a180b7

View File

@ -4,6 +4,7 @@ import ArbitraryTerm ()
import Control.Applicative
import Data.Adjoined
import Data.Coalescent
import Data.Foldable
import Data.Functor.Both
import Data.Typeable
import Line
@ -39,6 +40,7 @@ monoid gen =
instance Arbitrary a => Arbitrary (Adjoined a) where
arbitrary = fromList <$> arbitrary
shrink arbitrary = fromList <$> shrinkList shrink (toList arbitrary)
-- | A wrapper which never coalesces values.