Skip to content

Commit b534a8c

Browse files
committed
Implement forgotten mappend
1 parent ec5574b commit b534a8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

servant/src/Servant/Types/SourceT.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ instance Functor m => Semigroup (SourceT m a) where
102102
-- fromStepT (Effect (Just Stop))
103103
instance Functor m => Monoid (SourceT m a) where
104104
mempty = fromStepT mempty
105+
mappend = (<>)
105106

106107
-- | Doesn't generate 'Error' constructors. 'SourceT' doesn't shrink.
107108
instance (QC.Arbitrary a, Monad m) => QC.Arbitrary (SourceT m a) where
@@ -179,6 +180,7 @@ instance Functor m => Semigroup (StepT m a) where
179180
--
180181
instance Functor m => Monoid (StepT m a) where
181182
mempty = Stop
183+
mappend = (<>)
182184

183185
-- | Doesn't generate 'Error' constructors.
184186
instance (QC.Arbitrary a, Monad m) => QC.Arbitrary (StepT m a) where

0 commit comments

Comments
 (0)