Closed nick8325 closed 8 years ago
This could have been fixed by using NoBangPatterns language pragma were it not for the fact that the propagation to the parser was broken (fixed now). Also the default now is NoBangPatterns, to be turned on explicitly with BangPatterns.
Hi,
The following code should define a binary function
(!)
and then use it to define a valuex
:Unfortunately, I get an error that
x
is defined twice:The reason is that in the definition
x ! y = undefined
, the!
is parsed as a bang pattern so it becomesx (!y) = undefined
. This causes thecontainers
package to fail to compile on UHC.I worked around this by defining
(!)
prefix but thought I should report it anyway.