Skip to content

Commit

Permalink
Merge pull request #372 from sanctuary-js/davidchambers/traverse
Browse files Browse the repository at this point in the history
maybe, either: fix "fantasy-land/traverse" descriptions
  • Loading branch information
davidchambers authored Apr 4, 2017
2 parents 0e10382 + 73b9215 commit 6d9c5b6
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1664,10 +1664,11 @@

//# Maybe#fantasy-land/traverse :: Applicative f => Maybe a ~> (TypeRep f, a -> f b) -> f (Maybe b)
//.
//. Takes two functions which both return values of the same [Applicative][],
//. (the second of which must be that type's [`of`][] function) and returns:
//. Takes the type representative of some [Applicative][] and a function
//. which returns a value of that Applicative, and returns:
//.
//. - the result of applying `of` to `this` if `this` is Nothing; otherwise
//. - the result of applying the type representative's [`of`][] function to
//. `this` if `this` is Nothing; otherwise
//.
//. - the result of mapping [`Just`](#Just) over the result of applying the
//. first function to this Just's value.
Expand Down Expand Up @@ -2296,10 +2297,11 @@

//# Either#fantasy-land/traverse :: Applicative f => Either a b ~> (TypeRep f, b -> f c) -> f (Either a c)
//.
//. Takes two functions which both return values of the same [Applicative][],
//. (the second of which must be that type's [`of`][] function) and returns:
//. Takes the type representative of some [Applicative][] and a function
//. which returns a value of that Applicative, and returns:
//.
//. - the result of applying `of` to `this` if `this` is a Left; otherwise
//. - the result of applying the type representative's [`of`][] function to
//. `this` if `this` is a Left; otherwise
//.
//. - the result of mapping [`Right`](#Right) over the result of applying
//. the first function to this Right's value.
Expand Down

0 comments on commit 6d9c5b6

Please sign in to comment.