vim2hs
vim2hs copied to clipboard
Infix operator definitions incorrectly highlighted
f $ x = f x
Highlights as a function definition for f rather than $. Getting this right might be difficult, though:
map (x : xs) = ...
should highlight map rather than :.
If you decide to implement this, remember that this is also allowed:
(f . g) x = f (g x)
Extensions such as ViewPatterns and NPlusKPatterns could of course make this even trickier.
Yeah. For the Big Rewrite I'm thinking of scrubbing this highlighting all together. There's too many edge cases and in fact = is not "function definition" in Haskell so trying to highlight it as such is doomed. For example you can do (a,b) = ... at the top level.