Skip to content

Commit 4b5080f

Browse files
authored
Merge pull request #175 from sjshuck/release-2.3.2
Prepare v2.3.2
2 parents 2aaff1f + 4143865 commit 4b5080f

File tree

8 files changed

+19
-3
lines changed

8 files changed

+19
-3
lines changed

CHANGELOG.markdown

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
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+
110
2.3.1 -- 2022-09-10
211
-----
312
* Add `modifyError` to `Control.Monad.Error.Class`, and re-export from

Control/Monad/Error/Class.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ instance
207207
throwError = lift . throwError
208208
catchError = Accum.liftCatch catchError
209209

210+
-- | @since 2.3.2
210211
instance (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))

Control/Monad/RWS/Class.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,5 @@ instance MonadRWS r w s m => MonadRWS r w s (ExceptT e m)
6464
instance MonadRWS r w s m => MonadRWS r w s (IdentityT m)
6565
instance MonadRWS r w s m => MonadRWS r w s (MaybeT m)
6666

67+
-- | @since 2.3.2
6768
instance (MonadRWS r w s m, MonadRWS r w s n) => MonadRWS r w s (Product m n)

Control/Monad/Reader/Class.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
207208
instance (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)

Control/Monad/State/Class.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
197198
instance (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)

Control/Monad/Writer/Class.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ instance
207207
listen = Accum.liftListen listen
208208
pass = Accum.liftPass pass
209209

210+
-- | @since 2.3.2
210211
instance (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)

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

33
MTL is a collection of monad classes, extending the `transformers`
44
package, using functional dependencies for generic lifting of monadic

mtl.cabal

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 3.0
22
name: mtl
3-
version: 2.3.1
3+
version: 2.3.2
44
license: BSD-3-Clause
55
license-file: LICENSE
66
author: Andy Gill
@@ -18,9 +18,11 @@ description:
1818
build-type: Simple
1919

2020
extra-source-files:
21-
CHANGELOG.markdown
2221
README.markdown
2322

23+
extra-doc-files:
24+
CHANGELOG.markdown
25+
2426
tested-with: GHC ==8.10 || ==9.2 || ==9.8 || ==9.10 || ==9.12, MHS ==0.14.15.0
2527

2628
source-repository head

0 commit comments

Comments
 (0)