Fix loading of annotations
authorRoman Leshchinskiy <rl@cse.unsw.edu.au>
Fri, 4 Dec 2009 02:42:59 +0000 (02:42 +0000)
committerRoman Leshchinskiy <rl@cse.unsw.edu.au>
Fri, 4 Dec 2009 02:42:59 +0000 (02:42 +0000)
commit99d1354f70b94951fa8f7401ba82881a317b6a55
treeac139abb4fdc0b1ff5f9b73ec70d3990870892f4
parent1935c449d514f12d2dea33c7d52fe11b6bc60bb2
Fix loading of annotations

The problem was that we collected all annotations we knew about once when the
simplifier started and threaded them through the CoreM monad. If new interface
files were loaded during simplification, their annotations would not be
visible to the simplifier.

Now, we rebuild the annotation list at the start of every simplifier pass that
needs it (which is only SpecConstr at the moment). This ensures that we see
all annotations that have been loaded so far. This is somewhat similar to how
RULES are handled.
compiler/simplCore/CoreMonad.lhs
compiler/simplCore/SimplCore.lhs
compiler/specialise/SpecConstr.lhs