jcpetruzza / barbies

BSD 3-Clause "New" or "Revised" License
92 stars 15 forks source link

Compilation failure on GHC 9 #36

Closed ocharles closed 3 years ago

ocharles commented 3 years ago
src/Barbies/Internal/FunctorT.hs:50:11: error:
    • The default type signature for tmap:
        forall (f :: k -> *) (g :: k -> *) (x :: k').
        CanDeriveFunctorT t f g x =>
        (forall (a :: k). f a -> g a) -> t f x -> t g x
      does not match its corresponding non-default type signature
    • When checking the class method:
        tmap :: forall k k' (t :: (k -> *) -> k' -> *) (f :: k -> *)
                       (g :: k -> *).
                FunctorT t =>
                (forall (a :: k). f a -> g a) -> forall (x :: k'). t f x -> t g x
      In the class declaration for ‘FunctorT’
   |
50 |   default tmap
   |           ^^^^
jcpetruzza commented 3 years ago

This is working already on master, I believe (see #35). I wanted to try it before making a release, but stack is failing on ghc-9 for me atm

ocharles commented 3 years ago

Thanks - I'll try using HEAD

jcpetruzza commented 3 years ago

This is now in hackage as 2.0.3.0