[Haskell-cafe] confusion about 'instance'....

Henning Thielemann lemming at henning-thielemann.de
Thu Jan 10 10:57:44 EST 2008


On Thu, 10 Jan 2008, Nicholls, Mark wrote:

> > Existential:
> > newtype Numeric  = forall a. Num a => Numeric a
> >
>
> My compiler doesn't like this...." A newtype constructor cannot have an
> existential context,"
>
> > Universal:
> > newtype Numeric' = Numeric' (forall a. Num a => a)
>
> Not so sure I understand the difference here.....

Looks like
  http://www.haskell.org/haskellwiki/Generic_number_type


More information about the Haskell-Cafe mailing list