Fixed a couple of uses of the PassM monad that depended on the old mechanism
This commit is contained in:
parent
e3af6eecc1
commit
6abda39ee2
|
@ -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
|
||||
|
|
|
@ -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
|
||||
--}}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user