Move declaration of Rulebase from Rules to CoreSyn
authorSimon Peyton Jones <simonpj@microsoft.com>
Tue, 17 Mar 2015 00:00:31 +0000 (00:00 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Tue, 17 Mar 2015 12:37:53 +0000 (12:37 +0000)
commitdbd929971c05b5a05129029657a354ddfb658e61
tree54dab4db28df694eab68b20dd99e555795c20414
parentcf6c30719e503bf67c74b3790ae3adf7e0b81180
Move declaration of Rulebase from Rules to CoreSyn

This allow HscTypes to import CoreSyn rather than Rules, which makes
module loops easier to avoid.  At one point in my recent travels this
was important; I'm not sure it's so important now, but it's a good
thing anyway.

In any case CoreRule is defined in CoreSyn, so this move make sense.
compiler/coreSyn/CoreSyn.hs
compiler/main/HscTypes.hs
compiler/simplCore/CoreMonad.hs
compiler/simplCore/SimplCore.hs
compiler/simplCore/SimplMonad.hs
compiler/specialise/Rules.hs