git.iko.soy/distributed-process
on master help sign in
cosmetic (ish) - catchesExit docs
c804296Tim Watson
distributed-process/src/Control/Distributed/Process/Internal/Primitives.hs+6−5
@@ -446,11 +446,12 @@ catchExit act exitHandler = catch act handleExit
446 -- bytestrings if the caller doesn't use the value immediately
446 -- bytestrings if the caller doesn't use the value immediately
447 !decoded = decode (messageEncoding msg)
447 !decoded = decode (messageEncoding msg)
448
448
449−-- | As 'Control.Exception.catches' but allows for multiple handlers. Because
449+-- | Lift 'Control.Exception.catches' (almost).
450+--
450−-- 'ProcessExitException' stores the exit @reason@ as a typed, encoded message,
451+-- As 'ProcessExitException' stores the exit @reason@ as a typed, encoded
451−-- a handler must accept an input of the expected type. In order to handle
452+-- message, a handler must accept an input of the expected type. In order to
452−-- a list of potentially different handlers (and therefore input types), a
453+-- handle a list of potentially different handlers (and therefore input types),
453−-- handler passed to 'catchesExit' must accept 'AbstractMessage' and return
454+-- a handler passed to 'catchesExit' must accept 'AbstractMessage' and return
454-- @Maybe@ (i.e., @Just p@ if it handled the exit reason, otherwise @Nothing@).
455-- @Maybe@ (i.e., @Just p@ if it handled the exit reason, otherwise @Nothing@).
455--
456--
456-- See 'maybeHandleMessage' and 'AsbtractMessage' for more details.
457-- See 'maybeHandleMessage' and 'AsbtractMessage' for more details.