Module

Ulid

Package
purescript-ulid
Repository
maxdeviant/purescript-ulid

#Ulid Source

newtype Ulid

A Universally Unique Lexicographically Sortable Identifier (ULID).

Instances

#ulid Source

ulid :: Effect Ulid

Generates a ULID.

#seededUlid Source

seededUlid :: Timestamp -> Effect Ulid

Generates a ULID using the provided timestamp as the seed.

#parseUlid Source

parseUlid :: String -> Maybe Ulid

Parses the given string as a ULID. Returns Just if the input is a valid ULID and Nothing otherwise.

#toString Source

toString :: Ulid -> String

Returns the string representation of the ULID.

#monotonicFactory Source

monotonicFactory :: Effect (Timestamp -> Effect Ulid)

Returns a factory for generating monotonically-increasing ULIDs.

Modules
Ulid