package sihl

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Use this module to display flash messages to the user across the request-response lifecycle. This is typically used to provide feedback to the user after submitting HTML forms.

module Core = Sihl_core
module Service : sig ... end
module Sig : sig ... end
module Entry : sig ... end
type t
val sexp_of_t : t -> Sexplib0.Sexp.t
val equal : t -> t -> bool
val pp : Format.formatter -> t -> unit
val show : t -> string
val to_yojson : t -> Yojson.Safe.t
val empty : t
val set_success : string list -> t -> t
val set_warning : string list -> t -> t
val set_error : string list -> t -> t
val set_info : string list -> t -> t
val get_error : t -> string list
val get_warning : t -> string list
val get_success : t -> string list
val get_info : t -> string list
OCaml

Innovation. Community. Security.