[project @ 2002-07-29 10:50:43 by simonmar]
authorsimonmar <unknown>
Mon, 29 Jul 2002 10:50:44 +0000 (10:50 +0000)
committersimonmar <unknown>
Mon, 29 Jul 2002 10:50:44 +0000 (10:50 +0000)
commit5bca72372c6596012685063cb14cc4c6848fbc74
tree406b13d24617b334b661998643f0a597cbcbf41c
parent157cecc7a3d99864c40acecfabcd8922cb9dc4b7
[project @ 2002-07-29 10:50:43 by simonmar]
Type variables created by the typechecker didn't have the correct
NameSpace: they were in the Var namespace rather than the TyVar
namespace, which can lead to strange warnings about quantified type
variables being not mentioned in the type when DEBUG is on.

Name:
- added mkSystemNameEncoded for use when the string
  is already encoded (saves re-encoding the string every
  time)

- added mkSystemTvNameEncoded for making a type variable
  name, as above

Var:
- use mkSystemTvNameEncoded when making type variables

Id:
- add mkSysLocalUnencoded for the (rare) case when
  the string needs encoding

TcMType:
- use mkSystemTvNameEncoded rather than mkSystemName for
  making type variables

SetLevels:
- use mkSysLocalUnencoded since the names generated here
  need encoding.
ghc/compiler/basicTypes/Id.lhs
ghc/compiler/basicTypes/Name.lhs
ghc/compiler/basicTypes/Var.lhs
ghc/compiler/simplCore/SetLevels.lhs
ghc/compiler/typecheck/TcMType.lhs