[project @ 2001-05-09 13:28:11 by simonpj] ****	MERGE WITH 5.00 BRANCH     ********
[project @ 2001-05-09 13:28:11 by simonpj]
****	MERGE WITH 5.00 BRANCH     ********

	-------------------------------
	Fix a rather obscure rule bogon
	-------------------------------

The problem was that there was

	class Foo a where
	  op :: a -> a

	{-# RULES "op" op x = x #-}

or something like that.  We attach locally defined rules, like this one,
to the local binding, in SimplCore.prepareRules.  Alas op doesn't reply
"True" to isLocalId, because it's a class selector (so it's a GlobalId
throughout).   Result: we treated the rule as an imported rule, and
therefore gave 'op' a fresh unique (becuase it looked as if it was
already in scope).  This only blew up in ghc --make or --interactive.

The handling of local vs global rules is rather unsatisfactory.
Something to muse on.

wxwxwwxxx/ghc,elieux/ghc,ml9951/ghc,lukexi/ghc,nkaretnikov/ghc,oldmanmike/ghc,nomeata/ghc,frantisekfarka/ghc-dsi,mettekou/ghc,mfine/ghc,AlexanderPankiv/ghc,tibbe/ghc,jstolarek/ghc,mcmaniac/ghc,acowley/ghc,AlexanderPankiv/ghc,fmthoma/ghc,ryantm/ghc,GaloisInc/halvm-ghc,shlevy/ghc,vikraman/ghc,lukexi/ghc-7.8-arm64,gridaphobe/ghc,frantisekfarka/ghc-dsi,ghc-android/ghc,christiaanb/ghc,nushio3/ghc,tibbe/ghc,sgillespie/ghc,ezyang/ghc,mettekou/ghc,tjakway/ghcjvm,siddhanathan/ghc,olsner/ghc,da-x/ghc,anton-dessiatov/ghc,anton-dessiatov/ghc,nushio3/ghc,nushio3/ghc,lukexi/ghc-7.8-arm64,hferreiro/replay,acowley/ghc,ezyang/ghc,gridaphobe/ghc,ghc-android/ghc,nathyong/microghc-ghc,acowley/ghc,wxwxwwxxx/ghc,mcschroeder/ghc,wxwxwwxxx/ghc,lukexi/ghc,ryantm/ghc,vTurbine/ghc,green-haskell/ghc,mettekou/ghc,mettekou/ghc,ryantm/ghc,anton-dessiatov/ghc,ryantm/ghc,gridaphobe/ghc,snoyberg/ghc,vikraman/ghc,mcschroeder/ghc,ghc-android/ghc,mcmaniac/ghc,wxwxwwxxx/ghc,elieux/ghc,green-haskell/ghc,ryantm/ghc,mcschroeder/ghc,ekmett/ghc,nkaretnikov/ghc,TomMD/ghc,elieux/ghc,vTurbine/ghc,oldmanmike/ghc,ilyasergey/GHC-XAppFix,sdiehl/ghc,nathyong/microghc-ghc,urbanslug/ghc,anton-dessiatov/ghc,christiaanb/ghc,elieux/ghc,forked-upstream-packages-for-ghcjs/ghc,forked-upstream-packages-for-ghcjs/ghc,tjakway/ghcjvm,bitemyapp/ghc,mcschroeder/ghc,shlevy/ghc,nomeata/ghc,lukexi/ghc-7.8-arm64,nushio3/ghc,mfine/ghc,frantisekfarka/ghc-dsi,ekmett/ghc,vikraman/ghc,forked-upstream-packages-for-ghcjs/ghc,ghc-android/ghc,hferreiro/replay,oldmanmike/ghc,TomMD/ghc,ezyang/ghc,anton-dessiatov/ghc,ml9951/ghc,spacekitteh/smcghc,vTurbine/ghc,bitemyapp/ghc,TomMD/ghc,urbanslug/ghc,holzensp/ghc,ghc-android/ghc,hferreiro/replay,nkaretnikov/ghc,wxwxwwxxx/ghc,oldmanmike/ghc,olsner/ghc,mfine/ghc,tibbe/ghc,spacekitteh/smcghc,oldmanmike/ghc,tjakway/ghcjvm,nathyong/microghc-ghc,christiaanb/ghc,elieux/ghc,ml9951/ghc,nushio3/ghc,forked-upstream-packages-for-ghcjs/ghc,sdiehl/ghc,urbanslug/ghc,sdiehl/ghc,gcampax/ghc,vikraman/ghc,urbanslug/ghc,gcampax/ghc,olsner/ghc,elieux/ghc,sgillespie/ghc,ml9951/ghc,AlexanderPankiv/ghc,GaloisInc/halvm-ghc,jstolarek/ghc,wxwxwwxxx/ghc,sgillespie/ghc,spacekitteh/smcghc,nushio3/ghc,siddhanathan/ghc,jstolarek/ghc,christiaanb/ghc,sgillespie/ghc,mettekou/ghc,ml9951/ghc,da-x/ghc,ghc-android/ghc,ilyasergey/GHC-XAppFix,mfine/ghc,nkaretnikov/ghc,mfine/ghc,mcmaniac/ghc,tibbe/ghc,gcampax/ghc,gcampax/ghc,TomMD/ghc,hferreiro/replay,AlexanderPankiv/ghc,nkaretnikov/ghc,da-x/ghc,urbanslug/ghc,olsner/ghc,acowley/ghc,bitemyapp/ghc,green-haskell/ghc,vTurbine/ghc,ml9951/ghc,jstolarek/ghc,acowley/ghc,nathyong/microghc-ghc,tibbe/ghc,siddhanathan/ghc,mcmaniac/ghc,mettekou/ghc,lukexi/ghc,GaloisInc/halvm-ghc,snoyberg/ghc,gcampax/ghc,vTurbine/ghc,olsner/ghc,tjakway/ghcjvm,GaloisInc/halvm-ghc,snoyberg/ghc,fmthoma/ghc,nomeata/ghc,ekmett/ghc,olsner/ghc,mcschroeder/ghc,sdiehl/ghc,snoyberg/ghc,fmthoma/ghc,shlevy/ghc,AlexanderPankiv/ghc,sgillespie/ghc,da-x/ghc,sdiehl/ghc,mettekou/ghc,gridaphobe/ghc,acowley/ghc,tjakway/ghcjvm,vTurbine/ghc,mcschroeder/ghc,gcampax/ghc,AlexanderPankiv/ghc,siddhanathan/ghc,AlexanderPankiv/ghc,nkaretnikov/ghc,da-x/ghc,anton-dessiatov/ghc,mcschroeder/ghc,shlevy/ghc,hferreiro/replay,mfine/ghc,green-haskell/ghc,shlevy/ghc,shlevy/ghc,vikraman/ghc,nathyong/microghc-ghc,christiaanb/ghc,fmthoma/ghc,tjakway/ghcjvm,fmthoma/ghc,wxwxwwxxx/ghc,vTurbine/ghc,ezyang/ghc,lukexi/ghc,ekmett/ghc,snoyberg/ghc,bitemyapp/ghc,TomMD/ghc,gcampax/ghc,holzensp/ghc,shlevy/ghc,ezyang/ghc,sgillespie/ghc,da-x/ghc,elieux/ghc,holzensp/ghc,acowley/ghc,ml9951/ghc,bitemyapp/ghc,green-haskell/ghc,oldmanmike/ghc,frantisekfarka/ghc-dsi,tjakway/ghcjvm,urbanslug/ghc,lukexi/ghc-7.8-arm64,sdiehl/ghc,TomMD/ghc,lukexi/ghc-7.8-arm64,nathyong/microghc-ghc,GaloisInc/halvm-ghc,christiaanb/ghc,vikraman/ghc,gridaphobe/ghc,ilyasergey/GHC-XAppFix,gridaphobe/ghc,ilyasergey/GHC-XAppFix,forked-upstream-packages-for-ghcjs/ghc,ghc-android/ghc,snoyberg/ghc,GaloisInc/halvm-ghc,spacekitteh/smcghc,sgillespie/ghc,sdiehl/ghc,lukexi/ghc,hferreiro/replay,holzensp/ghc,anton-dessiatov/ghc,nomeata/ghc,olsner/ghc,mfine/ghc,holzensp/ghc,forked-upstream-packages-for-ghcjs/ghc,frantisekfarka/ghc-dsi,vikraman/ghc,ezyang/ghc,hferreiro/replay,jstolarek/ghc,spacekitteh/smcghc,siddhanathan/ghc,urbanslug/ghc,ekmett/ghc,snoyberg/ghc,ml9951/ghc,oldmanmike/ghc,siddhanathan/ghc,christiaanb/ghc,nathyong/microghc-ghc,forked-upstream-packages-for-ghcjs/ghc,nkaretnikov/ghc,GaloisInc/halvm-ghc,TomMD/ghc,da-x/ghc,mcmaniac/ghc,ezyang/ghc,nomeata/ghc,gridaphobe/ghc,fmthoma/ghc,fmthoma/ghc,nushio3/ghc,siddhanathan/ghc