[Haskell-cafe] Data & newtype differences. Today: strictness

Roman Cheplyaka roma at ro-che.info
Sun Jan 22 15:29:37 CET 2012


* Yves Parès <yves.pares at gmail.com> [2012-01-22 15:23:51+0100]
> Big sum up of everything:
> 
> If TestN is a newtype constructor, then
> 'TestN undefined' and 'undefined' are exactly the same thing.

To be precise, the former is a type-restricted version of the latter.

-- 
Roman I. Cheplyaka :: http://ro-che.info/



More information about the Haskell-Cafe mailing list