This repository has been archived by the owner on May 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
218 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
purescript-arrows | ||
================= | ||
# purescript-arrows | ||
|
||
[![Build Status](https://travis-ci.org/purescript-contrib/purescript-arrows.svg?branch=master)](https://travis-ci.org/purescript-contrib/purescript-arrows) | ||
|
||
Type classes for Arrows. | ||
Typeclasses for arrows. | ||
|
||
- [Module documentation](docs/Module.md) | ||
## Installation | ||
|
||
``` | ||
bower install purescript-arrows | ||
``` | ||
|
||
## Module documentation | ||
|
||
- [Control.Arrow](docs/Control.Arrow.md) | ||
- [Control.Arrow.Kleisli](docs/Control.Arrow.Kleisli.md) | ||
- [Control.Arrow.Cokleisli](docs/Control.Arrow.Cokleisli.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Module Documentation | ||
|
||
## Module Control.Arrow.Cokleisli | ||
|
||
#### `Cokleisli` | ||
|
||
``` purescript | ||
newtype Cokleisli w a b | ||
= Cokleisli (w a -> b) | ||
``` | ||
|
||
|
||
#### `runCokleisli` | ||
|
||
``` purescript | ||
runCokleisli :: forall w a b. Cokleisli w a b -> w a -> b | ||
``` | ||
|
||
|
||
#### `semigroupoidCokleisli` | ||
|
||
``` purescript | ||
instance semigroupoidCokleisli :: (Extend m) => Semigroupoid (Cokleisli m) | ||
``` | ||
|
||
|
||
#### `categoryCokleisli` | ||
|
||
``` purescript | ||
instance categoryCokleisli :: (Comonad m) => Category (Cokleisli m) | ||
``` | ||
|
||
|
||
#### `profunctorCokleisli` | ||
|
||
``` purescript | ||
instance profunctorCokleisli :: (Functor f) => Profunctor (Cokleisli f) | ||
``` | ||
|
||
|
||
#### `strongCokleisli` | ||
|
||
``` purescript | ||
instance strongCokleisli :: (Comonad m) => Strong (Cokleisli m) | ||
``` | ||
|
||
|
||
#### `arrowCokleisli` | ||
|
||
``` purescript | ||
instance arrowCokleisli :: (Comonad m) => Arrow (Cokleisli m) | ||
``` | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Module Documentation | ||
|
||
## Module Control.Arrow.Kleisli | ||
|
||
#### `Kleisli` | ||
|
||
``` purescript | ||
newtype Kleisli m a b | ||
= Kleisli (a -> m b) | ||
``` | ||
|
||
|
||
#### `runKleisli` | ||
|
||
``` purescript | ||
runKleisli :: forall m a b. Kleisli m a b -> a -> m b | ||
``` | ||
|
||
|
||
#### `semigroupoidKleisli` | ||
|
||
``` purescript | ||
instance semigroupoidKleisli :: (Monad m) => Semigroupoid (Kleisli m) | ||
``` | ||
|
||
|
||
#### `categoryKleisli` | ||
|
||
``` purescript | ||
instance categoryKleisli :: (Monad m) => Category (Kleisli m) | ||
``` | ||
|
||
|
||
#### `profunctorKleisli` | ||
|
||
``` purescript | ||
instance profunctorKleisli :: (Functor f) => Profunctor (Kleisli f) | ||
``` | ||
|
||
|
||
#### `strongKleisli` | ||
|
||
``` purescript | ||
instance strongKleisli :: (Monad m) => Strong (Kleisli m) | ||
``` | ||
|
||
|
||
#### `arrowKleisli` | ||
|
||
``` purescript | ||
instance arrowKleisli :: (Monad m) => Arrow (Kleisli m) | ||
``` | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Module Documentation | ||
|
||
## Module Control.Arrow | ||
|
||
#### `Arrow` | ||
|
||
``` purescript | ||
class (Category a, Strong a) <= Arrow a where | ||
``` | ||
|
||
|
||
#### `arrowFunction` | ||
|
||
``` purescript | ||
instance arrowFunction :: Arrow Prim.Function | ||
``` | ||
|
||
|
||
#### `ArrowZero` | ||
|
||
``` purescript | ||
class ArrowZero a where | ||
azero :: forall b c. a b c | ||
``` | ||
|
||
|
||
#### `ArrowPlus` | ||
|
||
``` purescript | ||
class ArrowPlus a where | ||
(<+>) :: forall b c. a b c -> a b c -> a b c | ||
``` | ||
|
||
|
||
|
||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.