Skip to content

Commit

Permalink
add star skeleton (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilsoft authored and Ian Hofmann-Hicks committed Mar 13, 2017
1 parent b5be2d6 commit 3a7e102
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 17 deletions.
18 changes: 1 addition & 17 deletions docs/crocks/Arrow.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,10 @@

| Constructor | Instance |
|:---|:---|
| [`empty`](#empty), [`type`](#type) | [`both`](#both), [`concat`](#concat), [`contramap`](#contramap), [`empty`](#empty), [`first`](#first), [`inspect`](#inspect), [`map`](#map), [`promap`](#promap), [`runWith`](#runWith), [`second`](#second), [`type`](#type), [`value`](#value) |
| [`type`](#type) | [`both`](#both), [`contramap`](#contramap), [`first`](#first), [`inspect`](#inspect), [`map`](#map), [`promap`](#promap), [`runWith`](#runWith), [`second`](#second), [`type`](#type) |

## Constructor

### empty

`Arrow m => () -> m a a`

### type

`() -> String`
Expand All @@ -32,18 +28,10 @@

`Arrow m, Pair p => m a b ~> () -> m (p a a) (p b b)`

### concat

`Arrow m => m a b ~> m a b -> m a b`

### contramap

`Arrow m => m a b ~> (c -> a) -> m c b`

### empty

`Arrow m => () -> m a a`

### first

`Arrow m, Pair p => m a b ~> () -> m (p a c) (p b c)`
Expand Down Expand Up @@ -71,7 +59,3 @@
### type

`() -> String`

### value

`Arrow m => m a b ~> (a -> b)`
61 changes: 61 additions & 0 deletions docs/crocks/Star.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Star

`Star a b` / `Monad m => Star a (m b)`

--

--

```js
--
```

`Star` exposes the following functions on the constructor and instance:

| Constructor | Instance |
|:---|:---|
| [`type`](#type) | [`both`](#both), [`contramap`](#contramap), [`first`](#first), [`inspect`](#inspect), [`map`](#map), [`promap`](#promap), [`runWith`](#runWith), [`second`](#second), [`type`](#type) |

## Constructor

### type

`() -> String`

## Instance

### both

`Star m, Pair p => m a b ~> () -> m (p a a) (p b b)`

### contramap

`Star m => m a b ~> (c -> a) -> m c b`

### first

`Star m, Pair p => m a b ~> () -> m (p a c) (p b c)`

### inspect

`() -> String`

### map

`Star m => m a b ~> (b -> c) -> m a c`

### promap

`Star m => m a b ~> ((c -> a), (b -> d)) -> s c d`

### runWith

`Star s, Monad m => s a (m b) ~> a -> m b`

### second

`Star m, Pair p => m a b ~> () -> m (p c a) (p c b)`

### type

`() -> String`

0 comments on commit 3a7e102

Please sign in to comment.