Natural transformations
samhh opened this issue · 4 comments
Defined in PureScript's prelude is the NaturalTransformation type, which is basically a shorthand from f a -> g a to f ~> g.
The ~> operator does not seem to be getting the same highlighting as -> and =>.
There is a distinction between ->, => and ~>. The latter is user-defined (even if it's in Prelude, it's not something the compiler is aware of).
The vim Haskell plugin, OTOH, just highlights all operators the same.
I would be okay with both options, but not really okay with just picking a few extra operators to add to the list. What do you think?
I suppose highlighting all operators the same is preferable provided that won't create bigger edge case problems?
Not sure, but I will look into it sometime within the next week or so!