[Haskell-cafe] Small syntax question

Thiago Arrais thiago.arrais at gmail.com
Tue Jul 11 10:25:08 EDT 2006


Mauricio,

The let variant is an expression, while the where one is not. An
expression is allowed to happen inside a greater expression, you just
need to place the parentheres properly as you did.

The where keyword does not construct a valid expression, it can only
happen inside some other constructs (like module and function
declarations).

Cheers,

Thiago Arrais


More information about the Haskell-Cafe mailing list