Skip to content

Commit f718724

Browse files
authored
Merge pull request #176 from L0neGamer/cps-writer-state
remove Monoid constraint on MonadState CPS.WriterT
2 parents 30e8a5f + 9259208 commit f718724

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CHANGELOG.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Unreleased
2+
-----
3+
* Remove `Monoid` constraint from `MonadState` instance of `CPS.WriterT`
4+
15
2.3.2 -- 2025-12-07
26
-----
37
* Add `Accum` monad.

Control/Monad/State/Class.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ instance MonadState s m => MonadState s (ReaderT r m) where
164164
state = lift . state
165165

166166
-- | @since 2.3
167-
instance (Monoid w, MonadState s m) => MonadState s (CPS.WriterT w m) where
167+
instance (MonadState s m) => MonadState s (CPS.WriterT w m) where
168168
get = lift get
169169
put = lift . put
170170
state = lift . state

0 commit comments

Comments
 (0)