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

GHC 6, base 4.18 support - Could not deduce Functor #4

Open
seanhess opened this issue Jul 27, 2023 · 1 comment
Open

GHC 6, base 4.18 support - Could not deduce Functor #4

seanhess opened this issue Jul 27, 2023 · 1 comment

Comments

@seanhess
Copy link
Contributor

I'm trying to compile Kernmantle with GHC 9.6.2 / base 4.18, and I'm getting the following error. I've forked the repo and was hoping to add a fix, but I'm afraid I don't understand what's going on with those deriving clauses well enough to know what to do.

Could you point me in the right direction for a fix for this? I'd be happy to create a PR.


src/Control/Kernmantle/Rope/Internal.hs:88:13: error: [GHC-39999]
    • Could not deduce ‘Functor
                          (RopeRunner record mantle interp core a)’
        arising from the head of a quantified constraint
        arising from the 'deriving' clause of a data type declaration
      from the context: Bifunctor core
        bound by the deriving clause for ‘Bifunctor
                                            (RopeRunner record mantle interp core)’
        at src/Control/Kernmantle/Rope/Internal.hs:88:13-21
    • When deriving the instance for (Bifunctor
                                        (RopeRunner record mantle interp core))
   |
88 |   deriving (Bifunctor, Biapplicative)
seanhess added a commit to seanhess/kernmantle that referenced this issue Jul 28, 2023
* is deprecated in favor of Type
Functor is now a prerequisite for Bifunctor
@seanhess
Copy link
Contributor Author

Just sent a PR ^. Let me know what else I can do to facilitate this getting published.

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.

1 participant