gen_gleam/prelude

Helpers for types and functions in the gleam prelude

Functions

pub fn boolean() -> GleamType

Helper for Boolean type

pub fn error(error: GleamStatement) -> GleamStatement

Helper for Error(b) statement

pub fn false() -> GleamStatement

Helper for False statement

pub fn ok(value: GleamStatement) -> GleamStatement

Helper for Ok(a) statement

pub fn result(
  ok_type: GleamType,
  error_type: GleamType,
) -> GleamType

Helper for Result(a, b) type

pub fn true() -> GleamStatement

Helper for True value

Search Document