ess / dry-monads.cr

Common Monads for Crystal, inspired by dry-rb.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dry-monads

Build Status

This is a port of the Ruby gem dry-monads by dry-rb.

For usage examples read the Ruby dry-monads documentation.

CAUTION: This project in still under active development. Use at your own risk.

TODOs

  • Dry::Monads::Either::Right
  • Dry::Monads::Either::Left
  • Dry::Monads::Maybe::Some
  • Dry::Monads::Maybe::None
  • Either#to_maybe
  • Maybe#to_either
  • Dry::Monads::Try
  • integration specs for Either
  • integrations specs for Maybe

Installation

Add this to your application's shard.yml:

dependencies:
  dry-monads:
    github: dry-cr/dry-monads

Then run crystal deps to install dependencies.

Usage

require "dry-monads"

TODO: Write usage instructions here

Development

TODO: Write development instructions here

Contributing

  1. Fork it ( https://github.com/dry-cr/dry-monads/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • ttdonovan Tanner Donovan - creator, maintainer

About

Common Monads for Crystal, inspired by dry-rb.org

License:MIT License


Languages

Language:Crystal 100.0%