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

https://github.com/vmchale/composition

Composition extras for Idris
https://github.com/vmchale/composition

Last synced: 11 months ago
JSON representation

Composition extras for Idris

Awesome Lists containing this project

README

          

# composition

This provides a `Data.Composition` module, much like the Haskell
[composition](https://hackage.haskell.org/package/composition-1.0.2.1) package
or the
[composition-extra](https://hackage.haskell.org/package/composition-extra)
package. As of now, it's just a thin wrapper around
[hezarfen](https://github.com/joom/hezarfen) with names I like.

## Installation

First, install hezarfen. Then, in the cloned directory:

```
idris --install composition.ipkg
```

## Use

As an example, you could replace

```
f = \x, y => 2 * y + x
```

with

```
f = (*2) .* +
```

## Documentation

You can find documentation
[here](https://vmchale.github.io/composition/index.html).