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

Reimplemented Functor & Applicative for LoggingT & NoLoggingT #125 #126

Merged
merged 2 commits into from Mar 16, 2017

Conversation

mageshb
Copy link
Contributor

@mageshb mageshb commented Mar 16, 2017

No description provided.

@@ -364,12 +364,15 @@ logOtherS = [|\src level msg -> monadLoggerLog $(qLocation >>= liftLoc) src (Lev
-- Since 0.2.4
newtype NoLoggingT m a = NoLoggingT { runNoLoggingT :: m a }

instance Monad m => Functor (NoLoggingT m) where
Copy link
Collaborator

Choose a reason for hiding this comment

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

This change in constraints is a non-breaking change since the AMP proposal went through (GHC 7.10?), but represents a breaking API change for earlier GHCs. I think it's better to only introduce the Functor/Applicative constraints conditionally for GHC 7.10 and newer.

@snoyberg
Copy link
Collaborator

Will merge after Travis passes.

@mageshb
Copy link
Contributor Author

mageshb commented Mar 16, 2017

Thank you

@snoyberg snoyberg merged commit 393d591 into kazu-yamamoto:master Mar 16, 2017
@snoyberg
Copy link
Collaborator

Thanks!

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.

None yet

2 participants