[Haskell-cafe]  vs [()]
haskell at colquitt.org
Fri Oct 10 00:24:08 EDT 2008
> > What is the difference between empty list  and list with one unit
> > element [()]?
> Prelude> length 
> Prelude> length [()]
Also, they differ in type.
[()] is a list of unit elements, and happens to contain exactly one
 is a (polymorphic) list of any kind of element, and happens not to
contain any of them.
More information about the Haskell-Cafe