git.iko.soy/distributed-process
on master help sign in
cosmetic (ish) - catchesExit docs
commitc804296f9da7cba14d82be53c27349b5dbf6de30 authorTim Watson <tim@rabbitmq.com> dateSat 19 Jan 2013, 01:11 (14 years ago) parent1005f5f
1 file changed+6−5
distributed-process/src/Control/Distributed/Process/Internal/Primitives.hs+6−5
distributed-process/src/Control/Distributed/Process/Internal/Primitives.hs+6−5
@@ -446,11 +446,12 @@ catchExit act exitHandler = catch act handleExit
446446 -- bytestrings if the caller doesn't use the value immediately
447447 !decoded = decode (messageEncoding msg)
448448
449−-- | As 'Control.Exception.catches' but allows for multiple handlers. Because
450−-- 'ProcessExitException' stores the exit @reason@ as a typed, encoded message,
451−-- a handler must accept an input of the expected type. In order to handle
452−-- a list of potentially different handlers (and therefore input types), a
453−-- handler passed to 'catchesExit' must accept 'AbstractMessage' and return
449+-- | Lift 'Control.Exception.catches' (almost).
450+--
451+-- As 'ProcessExitException' stores the exit @reason@ as a typed, encoded
452+-- message, a handler must accept an input of the expected type. In order to
453+-- handle a list of potentially different handlers (and therefore input types),
454+-- a handler passed to 'catchesExit' must accept 'AbstractMessage' and return
454455-- @Maybe@ (i.e., @Just p@ if it handled the exit reason, otherwise @Nothing@).
455456--
456457-- See 'maybeHandleMessage' and 'AsbtractMessage' for more details.