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