Fixed a couple of uses of the PassM monad that depended on the old mechanism

This commit is contained in:
Neil Brown 2008-03-10 15:19:28 +00:00
parent e3af6eecc1
commit 6abda39ee2
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ type CGen' = StateT (Either [String] Handle) PassM
type CGen = ReaderT GenOps CGen'
instance Die CGen where
dieReport = throwError
dieReport err = lift $ lift $ dieReport err
instance CSMR CGen' where
getCompState = lift getCompState

View File

@ -2021,7 +2021,7 @@ parseOccamProgram toks
= do cs <- get
(p, ws, cs') <- runTockParser toks sourceFile cs
put cs'
tell ws
mapM_ warnReport ws
return p
--}}}