croma v0.2.0

Modules summary

Croma

Utility module to import croma macros

Croma.Atom

Module that represents the Elixir’s built-in atom type. Intended to be used with other parts of croma to express atom variables

Croma.BitString

Module that represents the Elixir’s built-in bitstring type. Intended to be used with other parts of croma to express bitstring variables

Croma.Boolean

Module that represents the Elixir’s built-in boolean type. Intended to be used with other parts of croma to express boolean variables

Croma.Defpt

Module that provides Croma.Defpt.defpt/2 macro

Croma.Defun

Module that provides Croma.Defun.defun/2 macro

Croma.Float

Module that represents the Elixir’s built-in float type. Intended to be used with other parts of croma to express float variables

Croma.Function

Module that represents the Elixir’s built-in function type. Intended to be used with other parts of croma to express function variables

Croma.Integer

Module that represents the Elixir’s built-in integer type. Intended to be used with other parts of croma to express integer variables

Croma.List

Module that represents the Elixir’s built-in list type. Intended to be used with other parts of croma to express list variables

Croma.ListMonad

Implementation of Croma.Monad interface for built-in lists

Croma.Map

Module that represents the Elixir’s built-in map type. Intended to be used with other parts of croma to express map variables

Croma.Monad

This module defines an interface for monad

Croma.Pid

Module that represents the Elixir’s built-in pid type. Intended to be used with other parts of croma to express pid variables

Croma.Port

Module that represents the Elixir’s built-in port type. Intended to be used with other parts of croma to express port variables

Croma.Reference

Module that represents the Elixir’s built-in reference type. Intended to be used with other parts of croma to express reference variables

Croma.Result

A simple data structure to represent a result of computation that can either succeed or fail, in the form of {:ok, any} or {:error, any}

Croma.String

Module that represents the Elixir’s built-in String.t type. Intended to be used with other parts of croma to express String.t variables

Croma.Struct

Utility module to define structs and some helper functions

Croma.StructCallSyntax

This module provides a new syntax with ~> operator for calls to functions that take structs as 1st arguments

Croma.SubtypeOfAtom

Helper module to define a type whose members are a fixed set of atoms. The following members are generated by use Croma.SubtypeOfAtom:

Croma.SubtypeOfFloat

Helper module to define a float-based type. The following members are generated by use Croma.SubtypeOfFloat:

Croma.SubtypeOfInt

Helper module to define an integer-based type. The following members are generated by use Croma.SubtypeOfInt:

Croma.SubtypeOfList

Helper module to define a list-based type. The following members are generated by use Croma.SubtypeOfList:

Croma.SubtypeOfString

Helper module to define a string-based type. The following members are generated by use Croma.SubtypeOfString:

Croma.Tuple

Module that represents the Elixir’s built-in tuple type. Intended to be used with other parts of croma to express tuple variables

Croma.TypeGen

Module that defines macros for ad-hoc module definitions