Remove Control.Monad.Error, for transformers-0.6, enabled by mtl-2.3 #141
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.