Re:What it's like to use Haskell
by hikarudo on Wednesday March 26, 2014 @09:46AM
(#7473268)
(:) is a data constructor, not a type constructor, and its type is a -> [a] -> [a]. Examples of type constructors: [], Maybe, Either.
[ Parent
| on HN ]
To be clear: [] can refer to two different entities, a data constructor (empty list) and a type constructor (the list type).
Re:What it's like to use Haskell
by delluminatus on Wednesday March 26, 2014 @11:46AM
(#7474194)
Thanks for the clarification. You might be able to tell, that I am only in the first stages of trying to learn Haskell.