Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maybe, either: fix "fantasy-land/traverse" descriptions #372

Merged
merged 1 commit into from
Apr 4, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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