Repository navigation
Remove Control.Monad.Error, for transformers-0.6, enabled by mtl-2.3 - #141
Merged
Merged
Conversation
The constraints have been reorganized according to these principles: - mention dependency on top-level if mentioned in all branches of a conditional - do not repeat constraints in test-suite that are inherited from library - order each dependency group alphabetically (but `base` and parent go first) - format with leading comma (harder to make mistakes) - align at >= and &&
find . -name "*hs" | xargs fix-whitespace
instance Monad (Either e) isn't found when compiling with base <= 4.5
Member
|
This looks good to me and I think dropping the old GHCs is overdue. Probably time for a major version bump (i.e. to |
Member
Author
|
@hsenag wrote:
Indeed, removal of
|
Member
Good point! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remove
Control.Monad.Error, fortransformers-0.6, enabled bymtl-2.3.This breaks compilation with
base <= 4.5so I bumped the lower base to4.6.I tried to preserve compilation with
base <= 4.5, but my attempts failed: no instance forMonad Result, whereResult = Either <SomeTypeOfErrors>.I suppose this instance was provided via a
Monadinstance forEitherwith anErrorconstraint in olderbaseversions.I tried these fixes to no avail:
Data.EitherorControl.Monad.Instance: But this did not help, presumably because anErrorconstraint is needed? (Hard to get the history of theinstance Monad (Either _), docs only show since base-4.4, but its definition could have changed.)I have not tried
base-compatinstance Monad Result: this is also hairy across GHC versions as:MonadchangedIf it is important to preserve GHC 7.0-7.4 in new releases of HTTP, one could try harder.
But maybe it is ok to drop these. Legacy GHCs can use older versions of HTTP.
This PR is based on #140.