From: simonmar Date: Fri, 3 Oct 2003 13:14:53 +0000 (+0000) Subject: [project @ 2003-10-03 13:14:53 by simonmar] X-Git-Tag: Approx_11550_changesets_converted~391 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=10b68ffeaa642b8b61b85096052b18227ff3c83b;p=ghc-hetmet.git [project @ 2003-10-03 13:14:53 by simonmar] Fix typo. --- diff --git a/ghc/docs/users_guide/glasgow_exts.sgml b/ghc/docs/users_guide/glasgow_exts.sgml index 6ed0c94..63fd927 100644 --- a/ghc/docs/users_guide/glasgow_exts.sgml +++ b/ghc/docs/users_guide/glasgow_exts.sgml @@ -1229,17 +1229,19 @@ declarations. So this is illegal: -Reason: a value of type T must be represented as a pair -of a dictionary for Ord t and a value of type t. -That contradicts the idea that newtype should have no -concrete representation. You can get just the same efficiency and effect -by using data instead of newtype. If there is no -overloading involved, then there is more of a case for allowing -an existentially-quantified newtype, because the data -because the data version does carry an implementation cost, -but single-field existentially quantified constructors aren't much -use. So the simple restriction (no existential stuff on newtype) -stands, unless there are convincing reasons to change it. +Reason: a value of type T must be represented as a +pair of a dictionary for Ord t and a value of type +t. That contradicts the idea that +newtype should have no concrete representation. +You can get just the same efficiency and effect by using +data instead of newtype. If +there is no overloading involved, then there is more of a case for +allowing an existentially-quantified newtype, +because the data version does carry an +implementation cost, but single-field existentially quantified +constructors aren't much use. So the simple restriction (no +existential stuff on newtype) stands, unless there +are convincing reasons to change it.