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

‘m’ is a rigid type variable bound: build failure with 8.0.1.20161022 #106

Closed
ilovezfs opened this issue Oct 28, 2016 · 8 comments · Fixed by #108
Closed

‘m’ is a rigid type variable bound: build failure with 8.0.1.20161022 #106

ilovezfs opened this issue Oct 28, 2016 · 8 comments · Fixed by #108

Comments

@ilovezfs
Copy link

Build log is here: https://gist.github.com/ilovezfs/c62fa40eb3f61569cb0e03f8cd3320a8

Several errors that look like

Control/Monad/Logger.hs:249:10: error:
    • Couldn't match type ‘m’ with ‘IdentityT m’
      ‘m’ is a rigid type variable bound by
        the instance declaration at Control/Monad/Logger.hs:249:10
      Expected type: IdentityT
                       m (Loc -> LogSource -> LogLevel -> LogStr -> IO ())
        Actual type: IdentityT
                       (IdentityT m) (Loc -> LogSource -> LogLevel -> LogStr -> IO ())

Commenting out https://github.com/kazu-yamamoto/logger/blob/master/monad-logger/Control/Monad/Logger.hs#L249-L264 seems to work around the problem.

@snoyberg
Copy link
Collaborator

Is there any reason to believe this is a bug in our package instead of in GHC itself? Have you reported this upstream?

@ilovezfs
Copy link
Author

Nope, I've not reported it to GHC. The main reason to think it's the package is that of all of git-annex's many dependencies, this is the only one that failed to build out of the box.

@ilovezfs
Copy link
Author

@snoyberg suggestion on IRC is

I guess all the 'm's in the default declaration should be some new variable 'n's

@ilovezfs
Copy link
Author

may be related to https://ghc.haskell.org/trac/ghc/ticket/12768 which so far seems to be "won't fix"

@ilovezfs
Copy link
Author

RyanGlScott on IRC has traced this to http://git.haskell.org/ghc.git/commit/d2958bd08a049b61941f078e51809c7e63bc3354 but the current belief is that the breakage is intentional and the bug is in the package.

@RyanGlScott
Copy link
Contributor

12768 is a different issue. (I'm currently investigating that separately. In any case, 12768 and this issue were not caused by the same GHC commit.)

I've opened GHC Trac #12784 for this particular issue.

@snoyberg
Copy link
Collaborator

Thanks Ryan, I've subscribed to that Trac ticket.

snoyberg added a commit that referenced this issue Nov 7, 2016
Fix #106 by correcting the default signature for MonadLoggerIO
@ilovezfs
Copy link
Author

ilovezfs commented Nov 7, 2016

@snoyberg Thanks you for tagging a new release!

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 a pull request may close this issue.

3 participants