Changeset 3740 for src/Pugs/Monads.hs
- Timestamp:
- 05/23/05 16:57:32 (4 years ago)
- svk:copy_cache_prev:
- 5329
- Files:
-
- 1 modified
-
src/Pugs/Monads.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Monads.hs
r3724 r3740 40 40 enterContext :: Cxt -> Eval a -> Eval a 41 41 enterContext cxt = local (\e -> e{ envContext = cxt }) 42 43 {-| 44 Evaluate the specified wxpression in the specified (Perl6) context ('Cxt'). 45 46 (Subsequent chained 'Eval's do /not/ see this new scope.) 47 -} 48 enterEvalContext :: Cxt -> Exp -> Eval Val 49 enterEvalContext cxt = enterContext cxt . evalExp 42 50 43 51 {-|
