Allow changing fixity of new type operators
Here is the problem:
{-# LANGUAGE TypeOperators #-}
type (&) = ()
data (?)
class (#)
infixr 2 &
infixr 2 ?
infixr 2 #
testop.hs:5:10:
The fixity signature for `&' lacks an accompanying binding
testop.hs:6:10:
The fixity signature for `?' lacks an accompanying binding
testop.hs:7:10:
The fixity signature for `#' lacks an accompanying binding
My solution is inspired by the 'type' keyword in the export list.
infixr 2 type &
infixr 2 type ?, type #
Trac metadata
Trac field | Value |
---|---|
Version | 7.5 |
Type | FeatureRequest |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |