hask icon indicating copy to clipboard operation
hask copied to clipboard

Remove the `t` operator in type signatures

Open billpmurphy opened this issue 9 years ago • 1 comments

Instead of having to type t(Maybe, int) or t(Either, "a", str), it would be much cleaner to type Maybe(int) or Either("a", str).

This should be relatively easy to implement, though it would require a major change to some parts of type_system.py, which would be a large breaking change. More experimentation is necessary, I think.

billpmurphy avatar Jul 30 '15 14:07 billpmurphy

Thinking about this a bit more, it's not possible to remove t entirely, as it's still needed for polymorphic higher-kinded types (e.g. t("m", "a")), but I still think the Maybe(int) syntax is much cleaner than t(Maybe, int).

billpmurphy avatar Aug 03 '15 20:08 billpmurphy