-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from garyb/0.10-updates
Update dependencies
- Loading branch information
Showing
3 changed files
with
76 additions
and
81 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 |
---|---|---|
@@ -1,68 +1,62 @@ | ||
## Module Control.Applicative.Free | ||
|
||
#### `FreeAp` | ||
|
||
``` purescript | ||
data FreeAp f a | ||
``` | ||
|
||
The free applicative functor for a type constructor `f`. | ||
|
||
##### Instances | ||
``` purescript | ||
Functor (FreeAp f) | ||
Apply (FreeAp f) | ||
Applicative (FreeAp f) | ||
``` | ||
|
||
#### `NaturalTransformation` | ||
|
||
``` purescript | ||
type NaturalTransformation f g = forall a. f a -> g a | ||
``` | ||
|
||
#### `liftFreeAp` | ||
|
||
``` purescript | ||
liftFreeAp :: forall f a. f a -> FreeAp f a | ||
``` | ||
|
||
Lift a value described by the type constructor `f` into | ||
the free applicative functor. | ||
|
||
#### `retractFreeAp` | ||
|
||
``` purescript | ||
retractFreeAp :: forall f a. (Applicative f) => FreeAp f a -> f a | ||
``` | ||
|
||
Run a free applicative functor using the applicative instance for | ||
the type constructor `f`. | ||
|
||
#### `foldFreeAp` | ||
|
||
``` purescript | ||
foldFreeAp :: forall f g a. (Applicative g) => NaturalTransformation f g -> FreeAp f a -> g a | ||
``` | ||
|
||
Run a free applicative functor with a natural transformation from | ||
the type constructor `f` to the applicative functor `g`. | ||
|
||
#### `hoistFreeAp` | ||
|
||
``` purescript | ||
hoistFreeAp :: forall f g a. NaturalTransformation f g -> FreeAp f a -> FreeAp g a | ||
``` | ||
|
||
Natural transformation from `FreeAp f a` to `FreeAp g a` given a | ||
natural transformation from `f` to `g`. | ||
|
||
#### `analyzeFreeAp` | ||
|
||
``` purescript | ||
analyzeFreeAp :: forall f m a. (Monoid m) => (forall b. f b -> m) -> FreeAp f a -> m | ||
``` | ||
|
||
Perform monoidal analysis over the free applicative functor `f`. | ||
|
||
|
||
## Module Control.Applicative.Free | ||
|
||
#### `FreeAp` | ||
|
||
``` purescript | ||
data FreeAp f a | ||
``` | ||
|
||
The free applicative functor for a type constructor `f`. | ||
|
||
##### Instances | ||
``` purescript | ||
Functor (FreeAp f) | ||
Apply (FreeAp f) | ||
Applicative (FreeAp f) | ||
``` | ||
|
||
#### `liftFreeAp` | ||
|
||
``` purescript | ||
liftFreeAp :: forall f a. f a -> FreeAp f a | ||
``` | ||
|
||
Lift a value described by the type constructor `f` into | ||
the free applicative functor. | ||
|
||
#### `retractFreeAp` | ||
|
||
``` purescript | ||
retractFreeAp :: forall f a. Applicative f => FreeAp f a -> f a | ||
``` | ||
|
||
Run a free applicative functor using the applicative instance for | ||
the type constructor `f`. | ||
|
||
#### `foldFreeAp` | ||
|
||
``` purescript | ||
foldFreeAp :: forall f g a. Applicative g => (f ~> g) -> FreeAp f a -> g a | ||
``` | ||
|
||
Run a free applicative functor with a natural transformation from | ||
the type constructor `f` to the applicative functor `g`. | ||
|
||
#### `hoistFreeAp` | ||
|
||
``` purescript | ||
hoistFreeAp :: forall f g a. (f ~> g) -> FreeAp f a -> FreeAp g a | ||
``` | ||
|
||
Natural transformation from `FreeAp f a` to `FreeAp g a` given a | ||
natural transformation from `f` to `g`. | ||
|
||
#### `analyzeFreeAp` | ||
|
||
``` purescript | ||
analyzeFreeAp :: forall f m a. Monoid m => (forall b. f b -> m) -> FreeAp f a -> m | ||
``` | ||
|
||
Perform monoidal analysis over the free applicative functor `f`. | ||
|
||
|
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