infix type operators

ross at ross at
Wed Mar 9 19:58:06 EST 2005

On Wed, Mar 09, 2005 at 11:59:40PM +0100, Remi Turk wrote:
> - It's one thing more to learn. The difference between types and
>   typevariables (upper/lowercase) is better visible than the
>   difference between operator(variables) and infix-types ("Does
>   it start with a colon?") Which, I have to admit, is more of a
>   vague feeling than anything like a fact.

On the contrary: it's one less exception to remember.  With this change,
the lexical syntax of type variables and type constructors is exactly
the same as that for data variables and data constructors respectively,
except that there are some special type constructors (->), (), (,,), etc,
just as there are some special data constructors like 1.7, (), (,,) etc.

More information about the Glasgow-haskell-users mailing list