We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents da92fb9 + 91d17d7 commit 2aaff1fCopy full SHA for 2aaff1f
Control/Monad/State/Class.hs
@@ -197,3 +197,4 @@ instance MonadState s m => MonadState s (SelectT r m) where
197
instance (MonadState s m, MonadState s n) => MonadState s (Product m n) where
198
get = Pair get get
199
put s = Pair (put s) (put s)
200
+ state sas = Pair (state sas) (state sas)
Control/Monad/Writer/Class.hs
@@ -208,6 +208,7 @@ instance
208
pass = Accum.liftPass pass
209
210
instance (MonadWriter w m, MonadWriter w n) => MonadWriter w (Product m n) where
211
- tell w = Pair (tell w) (tell w)
+ writer aw = Pair (writer aw) (writer aw)
212
+ tell w = Pair (tell w) (tell w)
213
listen (Pair ma na) = Pair (listen ma) (listen na)
214
pass (Pair maf naf) = Pair (pass maf) (pass naf)
0 commit comments