/elmonads

Primary LanguageElixirMIT LicenseMIT

Disclaimer

This is a toy-project. I had fun doing this library but these are not real monads which you could use in Haskell. I just tried to adopt the idea of computations with side effect from Haskell to Elixir with minimal overhead to the syntax.

Monads

This is an implementation of the Try and Maybe monads. Please see tests for examples.

Installation

If available in Hex, the package can be installed by adding el_monads to your list of dependencies in mix.exs:

def deps do
  [{:el_monads, "~> 0.1.0"}]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/el_monads.