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

Import ~to advert type equality out of scope warning #243

Open
BebeSparkelSparkel opened this issue Oct 22, 2024 · 0 comments
Open

Import ~to advert type equality out of scope warning #243

BebeSparkelSparkel opened this issue Oct 22, 2024 · 0 comments

Comments

@BebeSparkelSparkel
Copy link
Collaborator

Seems like this isn't entirely resolved, GHC 9.12 is still a bit unhappy about the type equality:

Building library for mono-traversable-1.0.20.0...
[1 of 6] Compiling Data.MonoTraversable ( src/Data/MonoTraversable.hs, dist/build/Data/MonoTraversable.o, dist/build/Data/MonoTraversable.dyn_o )
src/Data/MonoTraversable.hs:179:47: warning: [GHC-12003] [-Wtype-equality-out-of-scope]
    • The ‘~’ operator is out of scope.
      Assuming it to stand for an equality constraint.
    • Note: ‘~’ 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.
    |
179 |     default omap :: (Functor f, Element (f a) ~ a, f a ~ mono)
    |                                               ^

Originally posted by @andreasabel in #227 (comment)

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

1 participant