Fix Trac #4127 (and hence #4173)
authorsimonpj@microsoft.com <unknown>
Wed, 7 Jul 2010 12:31:25 +0000 (12:31 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 7 Jul 2010 12:31:25 +0000 (12:31 +0000)
commitf87cc9cfccf83b21a66501f9654d3e6f1fa7adb4
tree1405978898dd43286f318acc92e8aacc48d97a43
parent2c183f9b2a148d4c6821d5b9a4ec3d18ee957263
Fix Trac #4127 (and hence #4173)

The change involves a little refactoring, so that the default
method Ids are brought into scope earlier, before the value
declarations are compiled.  (Since a value decl may contain
an instance decl in a quote.)

See Note [Default method Ids and Template Haskell] in
TcTyClsDcls.
compiler/basicTypes/MkId.lhs
compiler/typecheck/TcClassDcl.lhs
compiler/typecheck/TcInstDcls.lhs
compiler/typecheck/TcRnDriver.lhs
compiler/typecheck/TcTyClsDecls.lhs
compiler/types/Class.lhs