Skip to content

Upcoming breakage with transformers-0.6 / mtl-2.3 #139

Closed

Description

@andreasabel

transformers-0.6 (enabled by upcoming mtl-2.3) removes Control.Monad.Error. Thus, compilation will break:

[ 5 of 18] Compiling Network.Stream   ( Network/Stream.hs, dist/build/Network/Stream.o, dist/build/Network/Stream.dyn_o )

Network/Stream.hs:35:1: warning: [-Wdeprecations]
    Module ‘Control.Monad.Error’ is deprecated:
      Use "Control.Monad.Except" instead
   |
35 | import Control.Monad.Error
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^

Network/Stream.hs:44:10: warning: [-Wdeprecations]
    In the use of type constructor or class ‘Error’
    (imported from Control.Monad.Error, but defined in transformers-0.5.6.2:Control.Monad.Trans.Error):
    Deprecated: "Use Control.Monad.Trans.Except instead"
   |
44 | instance Error ConnError where
   |          ^^^^^

Activity

  1. hsenag commented on Feb 20, 2022

    @hsenag
    Member

    Thanks for the heads-up! Is it urgent that this get fixed before or right after the mtl-2.3 release? The upper bound will correctly exclude it in the short-term but I appreciate that it may be important to get the ecosystem updated quickly.

  2. andreasabel commented on Feb 21, 2022

    @andreasabel
    MemberAuthor

    I heard that transformers-0.6 will be part of GHC 9.4, so it would be great if that was released before/with the GHC 9.4 RC.
    But I think it would not hurt fixing it now since the deprecation has been out for years.
    I can give it a try.

  3. hsenag commented on Feb 22, 2022

    @hsenag
    Member

    Resolved by #141 - I'll close this once I do a release (planning on this evening, feel free to poke me if I haven't done it in a few days).

  4. andreasabel commented on Feb 22, 2022

    @andreasabel
    MemberAuthor

    @hsenag : Please also include #142 in the release while we are at it.

  5. andreasabel commented on Feb 22, 2022

    @andreasabel
    MemberAuthor

    I included a commit in #142 which drops the now obsolete flag mtl1.

  6. hsenag commented on Feb 23, 2022

    @hsenag
    Member

    Now published, thanks for all the cleanups!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions