Skip to content

Commit ecd4cf8

Browse files
authored
Merge pull request #124 from rhendric/rhendric/noncanonical
Remove noncanonical definitions
2 parents 04cc8a6 + ec9210c commit ecd4cf8

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

unliftio/ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog for unliftio
22

3+
## 0.2.25.1
4+
5+
* Forward compatibility with `-Wnoncanonical-monoid-instances` becoming an error
6+
37
## 0.2.25.0
48

59
* Add `UnliftIO.Exception.Lens`

unliftio/package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: unliftio
2-
version: 0.2.25.0
2+
version: 0.2.25.1
33
synopsis: The MonadUnliftIO typeclass for unlifting monads to IO (batteries included)
44
description: Please see the documentation and README at <https://www.stackage.org/package/unliftio>
55
homepage: https://github.com/fpco/unliftio/tree/master/unliftio#readme

unliftio/src/UnliftIO/Internals/Async.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,10 @@ instance (MonadUnliftIO m, Semigroup a) => Semigroup (Conc m a) where
510510
instance (Monoid a, MonadUnliftIO m) => Monoid (Conc m a) where
511511
mempty = pure mempty
512512
{-# INLINE mempty #-}
513+
#if !MIN_VERSION_base(4,11,0)
513514
mappend = liftA2 mappend
514515
{-# INLINE mappend #-}
516+
#endif
515517

516518
-------------------------
517519
-- Conc implementation --

0 commit comments

Comments
 (0)