mirror of
https://github.com/github/semantic.git
synced 2024-12-29 18:06:14 +03:00
Shrink Adjoined.
This commit is contained in:
parent
493f55aa65
commit
7da4a180b7
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user