An open API service indexing awesome lists of open source software.

https://github.com/iansinnott/shirt

👕 Put a shirt on that data! Simple algebraic data types
https://github.com/iansinnott/shirt

algebraic-data-types fp monad

Last synced: 12 months ago
JSON representation

👕 Put a shirt on that data! Simple algebraic data types

Awesome Lists containing this project

README

          

# Shirt

[![Build Status](https://img.shields.io/circleci/project/iansinnott/shirt.svg)](https://circleci.com/gh/iansinnott/shirt)
[![shirt on NPM](https://img.shields.io/npm/v/shirt.svg)](https://www.npmjs.com/package/shirt)

> 👕 Put a shirt on that data! Simple algebraic data types with zero dependencies

## Install

```
$ npm install --save shirt
```

## Usage

```js
import { Maybe, Either, IO, Validation } from 'shirt';

// TODO: examples...
```

You also have access to helper functions that might eliminate the need for another library:

```js
import { compose, curry, curryN } from 'shirt';

// TODO: examples...
```

## API

### `Maybe`

### `Either`

### `IO`

### `Validation`

## License

MIT © [Ian Sinnott](https://www.iansinnott.com)