Doing some type-level computation I've come to a point where I want to change the fixity of ->
because it can't be mixed with left associative type operators of fixity 0. I know it doesn't work outright with the TypeOperators
extension and infixr 1 ->
, because it only returns the error parse error on input ‘->’
.
Is there any extension or other means to modify the fixity of the function type operator?
You can make a synonym:
{-# LANGUAGE TypeOperators #-}
infixr 1 ~>
type (~>) = (->)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With