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

-Wtype-equality-out-of-scope for use type equality (GHC 9.10) #38

Open
andreasabel opened this issue Apr 29, 2024 · 1 comment
Open

Comments

@andreasabel
Copy link

There is a new warning with GHC 9.10:

src/WithIndex.hs:264:27: warning: [GHC-12003] [-Wtype-equality-out-of-scope]
    • The ‘~’ operator is out of scope.
      Assuming it to stand for an equality constraint.
    • NB: ‘~’ used to be built-in syntax but now is a regular type operator
          exported from Data.Type.Equality and Prelude.
      If you are using a custom Prelude, consider re-exporting it.
    • This will become an error in a future GHC release.
    |
264 |   default itraverse :: (i ~ Int, Applicative f) => (i -> a -> f b) -> t a -> f (t b)
    |            
@phadej
Copy link
Collaborator

phadej commented Apr 29, 2024

It's a warning. Won't fix until it's an issue.

I'll remove ghc-options: -Wall from the .cabal file (and move it to cabal.project), so you won't see it when building your dependencies.

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

2 participants