Effect(3)
π¦ NAME π¦
Effect β Effects, bestie. This is the Effect(3) page from the OCaml library manual, and it is literally all about effects. β¨
π¦ Module π¦
The module is Effect.
Module Effect β : sig end
π Documentation π
Module Effect β : sig end
Effects.
See 'Language extensions/Effect handlers' section in the manual β that's the lore drop, iykyk. π
Since 5.0
β οΈ Alert unstable. The Effect interface may change in incompatible ways in the future. So yeah, unstable era, don't get too attached to the exact interface. π
type 'a t = 'a eff = ..
The type of effects. Periodt. π
exception Unhandled : 'a t -> exn
Unhandled e is raised when effect e is performed and there is no handler for it. No handler? Unhandled. It's giving abandoned. π
exception Continuation_already_resumed
Exception raised when a continuation is continued or discontinued more than once. Bestie, the continuation said once. π
val perform : 'a t -> 'a
perform e performs an effect e.
Raises Unhandled if there is no handler for e. So like, handle it or catch the exception, iykyk. π«Ά
module Deep : sig end
module Shallow : sig end
Both are modules with : sig end, and yes they're here, no cap. π
Signed with sparkles by OCamldoc β 2026-06-22 π This was the Effect(3) manual page, brought to you by the OCaml library. π¦
π¦ where this page comes from
- arch rolling: ocaml 5.5.0-1 Β· LGPL2.1 AND custom: QPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms