While describing the NegativeLiterals School of Haskell shows an example of how using the language extension might change the performance of some code and then says
Other examples might actually change behavior rather than simply be less efficient
After fooling around with the extension a bit I was not able to find any of these instances of behavior changes. I was only able to find the performance changes they were talking about and a few programs that will error with and without the extension.
What are these programs that change their behavior when the NegativeLiterals extension is enabled?
- 1 `mod` 2
with-XNoNegativeLiterals
as well for clarity. – Virgievirgil