-
Notifications
You must be signed in to change notification settings - Fork 102
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
Ian Hofmann-Hicks
committed
Mar 2, 2017
1 parent
0d23be8
commit 9b24cd5
Showing
2 changed files
with
62 additions
and
17 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 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,61 @@ | ||
# Star | ||
|
||
`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 s, Pair p, Monad m => s a (m b) ~> () -> s (p a a) (p (m b) (m b))` | ||
|
||
### contramap | ||
|
||
`Star s, Monad m => s a (m b) ~> (c -> a) -> s c (m b)` | ||
|
||
### first | ||
|
||
`Star s, Pair p, Monad m => s a (m b) ~> () -> s (p a c) (p (m b) c)` | ||
|
||
### inspect | ||
|
||
`() -> String` | ||
|
||
### map | ||
|
||
`Star s, Monad m => s a (m b) ~> (b -> c) -> m a (m c)` | ||
|
||
### promap | ||
|
||
`Star s, Monad m => s a (m b) ~> ((a -> c), (b -> d) -> s c (m d)` | ||
|
||
### runWith | ||
|
||
`Star s, Monad m => s a (m b) ~> a -> m b` | ||
|
||
### second | ||
|
||
`Star s, Pair p, Monad m => s a (m b) ~> () -> m (p c a) (p c (m b))` | ||
|
||
### type | ||
|
||
`() -> String` |