[project @ 2005-05-20 11:32:03 by simonpj]
authorsimonpj <unknown>
Fri, 20 May 2005 11:32:03 +0000 (11:32 +0000)
committersimonpj <unknown>
Fri, 20 May 2005 11:32:03 +0000 (11:32 +0000)
commit40d3a06b353392a322d8425fb5dd9f103f4421f3
treef8bb0992b516e78d2db264a16106dcbc504fb620
parent79cbcc814c79530c422076aed116fb8ae12c020d
[project @ 2005-05-20 11:32:03 by simonpj]
Liberalise the defaulting rules for GHCi

Merge to STABLE?

The H98 defaulting rules are these.  Group constraints of the form (C v),
for some particular type variable v. Then default v if

a) v appears only in this group (no implicit params or D [v])
b) at least one of the C's is numeric
c) all the C's are standard

GHCi changed rules (b) to

(b') at least one of the C's is numeric, or Eq,Ord,Show

This commit further liberalises GHCi to change (c):

(c') any of the C's are standard

Otherwise the existence of a non-standard class (e.g. Random) is enough
to kill defaulting altogether.
ghc/compiler/typecheck/TcSimplify.lhs