Skip to content
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

Remove obsolete Alternative instance #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maralorn
Copy link

Upstream now implements an Alternative instance, so we don’t need the Orphan anymore

@maralorn maralorn changed the title Remove obsolte Alternative instance Remove obsolete Alternative instance Jun 26, 2023
Upstream now implements an Alternative instance, so we don’t need the Orphan anymore
@@ -34,7 +34,7 @@ library
, base >=4.12 && <5
, bytestring >=0.10 && <0.12
, hsyslog >=5 && <5.1
, monad-logger >=0.3.36 && <0.4
, monad-logger >=0.3.40 && <0.4

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it's a good opportunity to be PVP compliant and add upper bounds on the minor version, re:

  1. Client defines orphan instance. If a package defines an orphan instance, it MUST depend on the minor version of the packages that define the data type and the type class to be backwards compatible. For example, build-depends: mypkg >= 2.1.1 && < 2.1.2.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should just upstream the MonadPlus instance as well and get rid of the orphans altogether.
What do you think @ali-abrar ?

@alexfmpe
Copy link
Contributor

Used CPP instead to keep the instance around for older versions of monad-logger in #6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants