infix type operators

8 Mar
2005
8 Mar
'05
11:29 a.m.
The User's Guide says: The only thing that differs between operators in types and operators in expressions is that ordinary non-constructor operators, such as + and * are not allowed in types. Reason: the uniform thing to do would be to make them type variables, but that's not very useful. A less uniform but more useful thing would be to allow them to be type constructors. But that gives trouble in export lists. So for now we just exclude them. Conal has pointed out that the uniform thing would be useful for general arrow combinators: liftA2 :: Arrow (~>) => (a -> b -> c) -> (e ~> a) -> (e ~> b) -> (e ~> c)
7379
Age (days ago)
7379
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ross Paterson