on master help sign in
Add comments
commit6afc667110f94a969c4e8caf2bb5e70366000f66 authorHarendra Kumar <harendra.kumar@gmail.com> dateMon 26 Jun 2017, 15:30 (9 years ago) parent1b31d0b
1 file changed+4
src/Strands/Context.hs+4
src/Strands/Context.hs+4
@@ -203,6 +203,10 @@ composeContext Context { currentm = m
203203 composefStack [] _ = error "Bug: this should never be reached"
204204 composefStack (f:ff) x = (unsafeCoerce f) x >>= composefStack ff
205205
206+------------------------------------------------------------------------------
207+-- Mailbox
208+------------------------------------------------------------------------------
209+
206210setContextMailBox :: Context -> a -> Context
207211setContextMailBox ctx mbdata = ctx { mailBox = Just $ unsafeCoerce mbdata }
208212