Skip to content

Commit 8a39c7d

Browse files
committed
these constraints aren't neccessary, according to GHC
1 parent 460e834 commit 8a39c7d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Control/Monad/Trans/Accum.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ execAccum m w = snd (runAccum m w)
115115
-- and return the final value, discarding the final output.
116116
--
117117
-- * @'evalAccum' m w = 'fst' ('runAccum' m w)@
118-
evalAccum :: (Monoid w) => Accum w a -> w -> a
118+
evalAccum :: Accum w a -> w -> a
119119
evalAccum m w = fst (runAccum m w)
120120
{-# INLINE evalAccum #-}
121121

@@ -173,7 +173,7 @@ execAccumT m w = do
173173
-- history and return the final value, discarding the final output.
174174
--
175175
-- * @'evalAccumT' m w = 'liftM' 'fst' ('runAccumT' m w)@
176-
evalAccumT :: (Monad m, Monoid w) => AccumT w m a -> w -> m a
176+
evalAccumT :: (Monad m) => AccumT w m a -> w -> m a
177177
evalAccumT m w = do
178178
~(a, _) <- runAccumT m w
179179
return a

0 commit comments

Comments
 (0)