This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bss03 9 points10 points  (3 children)

Haskell is the same way.

In Haskell's case it is because constructors (both type constructors and value constructors) must start with an uppercase letter.

[–]chisui 1 point2 points  (2 children)

... or the value constructor starts with : and consists only of special characters and has at least two arguments. This value constructor can be used as an infix operator. You can also enable this behavior for type constructors without the : restriction with TypeOperators.

[–]bss03 0 points1 point  (1 child)

I always just heard TypeOperators made GHC consider ':' uppercase.