File tree Expand file tree Collapse file tree 8 files changed +19
-3
lines changed
Expand file tree Collapse file tree 8 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 1+ 2.3.2 -- 2025-12-07
2+ -----
3+ * Add ` Accum ` monad.
4+ * Generalize ` MonadAccum ` instance for all ` Monad m ` underlying ` AccumT ` , not just ` Identity ` .
5+ * Allow building monokinded ` ContT ` if the compiler is MicroHs.
6+ * Fix an issue where ` QuantifiedConstraints ` in the definition of ` liftCallCC ` was was preventing building under certain conditions.
7+ * Add ` Control.Monad.Class.onError ` .
8+ * Add various instances for ` Data.Functor.Product.Product ` .
9+
1102.3.1 -- 2022-09-10
211-----
312* Add ` modifyError ` to ` Control.Monad.Error.Class ` , and re-export from
Original file line number Diff line number Diff line change @@ -207,6 +207,7 @@ instance
207207 throwError = lift . throwError
208208 catchError = Accum. liftCatch catchError
209209
210+ -- | @since 2.3.2
210211instance (MonadError e m , MonadError e n ) => MonadError e (Product m n ) where
211212 throwError e = Pair (throwError e) (throwError e)
212213 catchError (Pair ma na) f = Pair (catchError ma (productFst . f)) (catchError na (productSnd . f))
Original file line number Diff line number Diff line change @@ -64,4 +64,5 @@ instance MonadRWS r w s m => MonadRWS r w s (ExceptT e m)
6464instance MonadRWS r w s m => MonadRWS r w s (IdentityT m )
6565instance MonadRWS r w s m => MonadRWS r w s (MaybeT m )
6666
67+ -- | @since 2.3.2
6768instance (MonadRWS r w s m , MonadRWS r w s n ) => MonadRWS r w s (Product m n )
Original file line number Diff line number Diff line change @@ -204,6 +204,7 @@ instance
204204 local f (runSelectT m (local (const r) . c))
205205 reader = lift . reader
206206
207+ -- | @since 2.3.2
207208instance (MonadReader r m , MonadReader r n ) => MonadReader r (Product m n ) where
208209 ask = Pair ask ask
209210 local f (Pair ma na) = Pair (local f ma) (local f na)
Original file line number Diff line number Diff line change @@ -194,6 +194,7 @@ instance MonadState s m => MonadState s (SelectT r m) where
194194 put = lift . put
195195 state = lift . state
196196
197+ -- | @since 2.3.2
197198instance (MonadState s m , MonadState s n ) => MonadState s (Product m n ) where
198199 get = Pair get get
199200 put s = Pair (put s) (put s)
Original file line number Diff line number Diff line change @@ -207,6 +207,7 @@ instance
207207 listen = Accum. liftListen listen
208208 pass = Accum. liftPass pass
209209
210+ -- | @since 2.3.2
210211instance (MonadWriter w m , MonadWriter w n ) => MonadWriter w (Product m n ) where
211212 writer aw = Pair (writer aw) (writer aw)
212213 tell w = Pair (tell w) (tell w)
Original file line number Diff line number Diff line change 1- # ` mtl ` [ ![ Hackage] ( https://img.shields.io/hackage/v/mtl.svg )] ( https://hackage.haskell.org/package/mtl ) [ ![ Build Status ] ( https://travis-ci.org/haskell/mtl.svg )] ( https://travis-ci.org/haskell/mtl )
1+ # ` mtl ` [ ![ Hackage] ( https://img.shields.io/hackage/v/mtl.svg )] ( https://hackage.haskell.org/package/mtl )
22
33MTL is a collection of monad classes, extending the ` transformers `
44package, using functional dependencies for generic lifting of monadic
Original file line number Diff line number Diff line change 11cabal-version : 3.0
22name : mtl
3- version : 2.3.1
3+ version : 2.3.2
44license : BSD-3-Clause
55license-file : LICENSE
66author : Andy Gill
@@ -18,9 +18,11 @@ description:
1818build-type : Simple
1919
2020extra-source-files :
21- CHANGELOG.markdown
2221 README.markdown
2322
23+ extra-doc-files :
24+ CHANGELOG.markdown
25+
2426tested-with : GHC == 8.10 || == 9.2 || == 9.8 || == 9.10 || == 9.12 , MHS == 0.14.15.0
2527
2628source-repository head
You can’t perform that action at this time.
0 commit comments