Tokens

Tokens #

Syntax. Here are syntactic constraints on basic elements of a Haskell program:

meaning syntax examples
variable name starts with a lower case letter x, xs, f, remainder, maxValue
function name starts with a lower case letter square, applyBoolOp
type starts with an upper case letter Integer, Char, Bool
type variable starts with a lower case letter a, type, baseType
constructor starts with a capital letter Cons, CityC, True