Implement forgotten mappend
This commit is contained in:
parent
ec5574b3b7
commit
b534a8c2cf
1 changed files with 2 additions and 0 deletions
|
@ -102,6 +102,7 @@ instance Functor m => Semigroup (SourceT m a) where
|
|||
-- fromStepT (Effect (Just Stop))
|
||||
instance Functor m => Monoid (SourceT m a) where
|
||||
mempty = fromStepT mempty
|
||||
mappend = (<>)
|
||||
|
||||
-- | Doesn't generate 'Error' constructors. 'SourceT' doesn't shrink.
|
||||
instance (QC.Arbitrary a, Monad m) => QC.Arbitrary (SourceT m a) where
|
||||
|
@ -179,6 +180,7 @@ instance Functor m => Semigroup (StepT m a) where
|
|||
--
|
||||
instance Functor m => Monoid (StepT m a) where
|
||||
mempty = Stop
|
||||
mappend = (<>)
|
||||
|
||||
-- | Doesn't generate 'Error' constructors.
|
||||
instance (QC.Arbitrary a, Monad m) => QC.Arbitrary (StepT m a) where
|
||||
|
|
Loading…
Reference in a new issue