Coder Social home page Coder Social logo

monad's Introduction

Monad

Build Status

This library provides do-syntax and monads for Elixir. It is heavily inspired by Haskell.

Contributing Guidelines

To contribute:

  1. Fork the monad repository on GitHub.

  2. Clone your fork or add the remote if you already have a clone of the repository.

     git clone [email protected]:your_username/monad.git
     # or
     git remote add mine [email protected]:your_username/monad.git
    
  3. Create a feature branch for your change.

     git checkout -b feature/name-of-your-branch
    
  4. Make your change and commit. Use a clear and descriptive commit message, see this note.

  5. Push to your fork of the repository and then send a pull-request through GitHub.

     git push mine feature/name-of-your-branch
    
  6. We will review your patch and merge it into the main repository or send you feedback.

Coding Style

  • Golden rule: just follow the style of the rest of the code.
  • Avoid unneccesary whitespace in expressions with braces and brackets (tuples / lists). Don't write { :ok, a }, write {:ok, a}. Whitespace is allowed in nested expressions if it significantly improves readability, but if things get that complicated prefer to rewrite the expression to be simpler (one spot where that's not always possible is pattern matching).
  • Add documentation to all modules (@moduledoc) and public functions/macro's (@doc). Exception: implementations of callbacks don't need (but may have) documentation, if you leave off the documentation a default will be provided by the documentation generator.
  • In documentation use the first line as a short summary, this will show up in the function/module/whatever overview in the documentation.
  • Line length: limit the numbers of characters per line to 80.
  • Avoid trailing whitespace.

Branching Model

Use Vincent Driessen's branching model (as supported by git-flow, of course you're free to do it by hand).

monad's People

Stargazers

Zvonimir Rudinski avatar  avatar

Watchers

Andrey Pavlov avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.