on master help sign in
Add comments
6afc667Harendra Kumar
src/Strands/Context.hs+4
@@ -203,6 +203,10 @@ composeContext Context { currentm = m
203 composefStack [] _ = error "Bug: this should never be reached"
203 composefStack [] _ = error "Bug: this should never be reached"
204 composefStack (f:ff) x = (unsafeCoerce f) x >>= composefStack ff
204 composefStack (f:ff) x = (unsafeCoerce f) x >>= composefStack ff
205
205
206+------------------------------------------------------------------------------
207+-- Mailbox
208+------------------------------------------------------------------------------
209+
206setContextMailBox :: Context -> a -> Context
210setContextMailBox :: Context -> a -> Context
207setContextMailBox ctx mbdata = ctx { mailBox = Just $ unsafeCoerce mbdata }
211setContextMailBox ctx mbdata = ctx { mailBox = Just $ unsafeCoerce mbdata }
208
212