kernmantle icon indicating copy to clipboard operation
kernmantle copied to clipboard

GHC 6, base 4.18 support - Could not deduce Functor

Open seanhess opened this issue 2 years ago • 1 comments

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 avatar Jul 27 '23 14:07 seanhess

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

seanhess avatar Jul 28 '23 16:07 seanhess