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

GHC 9.4: warning about missing LANGUAGE TypeOperators #106

Closed
andreasabel opened this issue Jul 16, 2022 · 0 comments · Fixed by #112
Closed

GHC 9.4: warning about missing LANGUAGE TypeOperators #106

andreasabel opened this issue Jul 16, 2022 · 0 comments · Fixed by #112

Comments

@andreasabel
Copy link

This warning can be fixed in a backwards-compatible way by adding TypeOperators to default-extensions: in the .cabal file.

Building library for dlist-1.0..
[1 of 5] Compiling Data.DList.Internal ( Data/DList/Internal.hs, dist/build/Data/DList/Internal.o, dist/build/Data/DList/Internal.dyn_o )

Data/DList/Internal.hs:642:12: warning: [-Wtype-equality-requires-operators]
    The use of ‘~’ without TypeOperators
    will become an error in a future GHC release.
    Suggested fix: Perhaps you intended to use TypeOperators
    |
642 | instance a ~ Char => IsString (DList a) where
    |            ^
[2 of 5] Compiling Data.DList       ( Data/DList.hs, dist/build/Data/DList.o, dist/build/Data/DList.dyn_o )
[3 of 5] Compiling Data.DList.DNonEmpty.Internal ( Data/DList/DNonEmpty/Internal.hs, dist/build/Data/DList/DNonEmpty/Internal.o, dist/build/Data/DList/DNonEmpty/Internal.dyn_o )

Data/DList/DNonEmpty/Internal.hs:459:12: warning: [-Wtype-equality-requires-operators]
    The use of ‘~’ without TypeOperators
    will become an error in a future GHC release.
    Suggested fix: Perhaps you intended to use TypeOperators
    |
459 | instance a ~ Char => IsString (DNonEmpty a) where
    |            ^
spl added a commit that referenced this issue Sep 1, 2023
@spl spl closed this as completed in #112 Sep 1, 2023
spl added a commit that referenced this issue Sep 1, 2023
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

Successfully merging a pull request may close this issue.

1 participant