servant icon indicating copy to clipboard operation
servant copied to clipboard

TypeNats errors on ghc 9.4

Open danwdart opened this issue 3 years ago • 1 comments

src/Servant/Links.hs:650:10: error:
    • There is no instance for HasLink (arr :> ...)
      arr expects 1
                  GHC.TypeNats.+ Servant.API.TypeErrors.Arity' b more arguments
    • In the ambiguity check for an instance declaration
      In the instance declaration for ‘HasLink ((arr :: a -> b) :> sub)’
    |
650 | instance TypeError (PartialApplication HasLink arr) => HasLink ((arr :: a -> b) :> sub)
    |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Servant/Links.hs:656:31: error:
    • There is no instance for HasLink (ty :> ...)
    • In the ambiguity check for an instance declaration
      In the instance declaration for ‘HasLink (ty :> sub)’
    |
656 | instance {-# OVERLAPPABLE #-} TypeError (NoInstanceForSub HasLink ty) => HasLink (ty :> sub)

happened when I relaxed version constraints.

Does anyone know what to do about that, or know anything about that?

Thanks

danwdart avatar Oct 10 '22 01:10 danwdart

Think it could actually have already been fixed by https://github.com/haskell-servant/servant/pull/1592 so testing that out.

danwdart avatar Oct 10 '22 01:10 danwdart

@danwdart I think this can be closed?

ysangkok avatar Nov 27 '22 15:11 ysangkok

Please re-open if it needs to be reopened.

tchoutri avatar Nov 27 '22 15:11 tchoutri

I saw the branch had been merged, so yes, that makes sense to me

danwdart avatar Nov 27 '22 16:11 danwdart