New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support mtl-2.3-rc4
#5659
Comments
If Because of this, there could be delays. Esp. stackage nightly might not switch so quickly. Thus, I removed this from the 2.6.2.1 milestone. |
The new RC4 breaks very little, but the removal of |
Seems we are hit by the following innovation in
class (forall m. Monad m => Monad (t m)) => MonadTrans t where Problem here: agda/src/full/Agda/TypeChecking/Monad/Base.hs Lines 4263 to 4276 in c7499fb
Reported this problem upstream: |
…Applicative The new constraints are more precise and will help with migration to transformers-0.6.
According to my experience so far, Agda 2.6.2.1 could be relaxed to |
Would this be fixed if agda changes the instance to #if __GLASGOW_HASKELL__ < 808
instance MonadIO m => Monad (TCMT m) where
#else
instance Monad m => Monad (TCMT m) where
#endif
return = pure
(>>=) = bindTCMT
(>>) = (*>)
#if __GLASGOW_HASKELL__ < 808
fail = Fail.fail
#endif and transformers limits the constraint to GHC >= 8.8? |
@RossPaterson : Thanks for engaging! I will investigate your suggestion and get back to you. |
@RossPaterson : Indeed, your fix simply works for all our GHC versions!, except for GHC 8.6. So your suggested revision of |
Glad to hear it. The change is in |
…Applicative The new constraints are more precise and will help with migration to transformers-0.6.
Revision 3 of 2.6.2.1 to allow |
…Applicative The new constraints are more precise and will help with migration to transformers-0.6.
…Applicative The new constraints are more precise and will help with migration to transformers-0.6.
I'm very late to the party, but |
This was suggested by @phadej and it works thanks to `MonadFailDesugaring` being on by default in GHC 8.6.
@phadej: Thanks for pointing this out. Unfortunately, we didn't have the expertise to find the best solution back then. Indeed, I can simply relax the fix from GHC-8.8 to GHC-8.6 as the latter has |
This was suggested by @phadej and it works thanks to `MonadFailDesugaring` being on by default in GHC 8.6.
Dependencies breaking with
mtl-2.3
:equivalence
Breakage withmtl-2.3-rc4
pa-ba/equivalence#14exceptions
transformers-0.6 support ekmett/exceptions#82constraints
Build failure withmtl-2.3
ekmett/constraints#110 (Fixed byconstraints-0.13.3
)Problems in our code:
transformers-0.6
, enabled bymtl-2.3
breaks compilation ofinstance MonadTrans TCMT
.Context:
Release of
mtl-2.3
is imminent, seeAnnouncement mail by Emily Pillmore
Chessai and I are excited to announce a release candidate for
mtl
:mtl-2.3-rc3
!Timeline
The timeline for release will be as follows:
This announcement marks the start of the timeline
We will give 2 weeks of testing before considering release
If no major issues are filed before then,
mtl-2.3-rc3
will be released asmtl-2.3
, and if issues are found, they will be amended, and a new release candidate will be announced, resetting the 2 week period.To test
mtl-2.3-rc3
for yourself, please feel free to add the following to yourcabal.project
:or, if you're a stack user add this entry to your
extra-deps
:And make sure to adjust all bounds/
allow-newer
accordingly. Please note that this release ofmtl
is a full major version release, and will be the last of the 2.x series before work begins on updating the mtl class hierarchy.Changelog
Add instances for
Control.Monad.Trans.Writer.CPS
andControl.Monad.Trans.RWS.CPS
fromtransformers
0.5.6 and addControl.Monad.Writer.CPS
andControl.Monad.RWS.CPS
.Control.Monad.Cont
now re-exportsevalCont
andevalContT
Add
tryError
,withError
,handleError
, andmapError
toControl.Monad.Error.Class
, and re-export fromControl.Monad.Except
.Remove
Control.Monad.List
andControl.Monad.Error
Remove instances of deprecated
ListT
andErrorT
Remove re-exports of
Error
Add instances for
Control.Monad.Trans.Accum
andControl.Monad.Trans.Select ( http://control.monad.trans.select/ )
Remove re-exports of
Control.Monad
,Control.Monad.Fix
andData.Monoid
modulesI'd like to thank the many contributors who offered patches, tickets, and other help in the preparation of this release. We appreciate all of your help!
Happy hacking!
Emily
The text was updated successfully, but these errors were encountered: