yes.

> data D = D Int
> newtype N = N Int

there is a difference between

  (N undefined) `seq` ()

and

  (D undefined) `seq` ()

there has been a lot of discussion about this on the mailing list,
probably under a title of something like "difference between data and
newtype".

--
 Hal Daume III                                   | [EMAIL PROTECTED]
 "Arrest this man, he talks in maths."           | www.isi.edu/~hdaume

On Sat, 8 Mar 2003, Dean Herington wrote:

> If a type that could be defined either by `data` or `newtype` (i.e., a
> single-constructor type) is exported abstractly (without its constructor),
> can the user of the type tell how the type was declared?
> 
> Dean
> 
> 
> _______________________________________________
> Haskell mailing list
> [EMAIL PROTECTED]
> http://www.haskell.org/mailman/listinfo/haskell
> 

_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to