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

TypeNats errors on ghc 9.4 #1619

Closed
danwdart opened this issue Oct 10, 2022 · 4 comments
Closed

TypeNats errors on ghc 9.4 #1619

danwdart opened this issue Oct 10, 2022 · 4 comments

Comments

@danwdart
Copy link

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
Copy link
Author

Think it could actually have already been fixed by #1592 so testing that out.

@ysangkok
Copy link
Contributor

@danwdart I think this can be closed?

@tchoutri
Copy link
Contributor

Please re-open if it needs to be reopened.

@danwdart
Copy link
Author

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

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

No branches or pull requests

3 participants