[clean-list] understanding list type definition

Jigang Sun Jigang.Sun at student.paisley.ac.uk
Wed Oct 4 10:42:49 MEST 2006


On language report 2.0, page 115,

ListType = [[ListKind] Type [SpineStrictness]]
Type = {BrackType}+
BrackType = [UniversalQuantVariables] [Strict] [UnqTypeAttrib] TypeExpression

Type Expression = TypeVariable // see A.7
|typeConstructorName
| (Type)
| PredefinedType
| PredefinedTypeConstructor

PredefinedType = BasicType
| ListType
| TupleType
| ArrayType
| ArrowType
| PredefType

BasicType = Int
| Real
| Char
| Bool

so a list type [Int Bool] is legal?

Jigang




More information about the clean-list mailing list