Skip to content

Commit

Permalink
Merge pull request #307 from sanctuary-js/dc-extend
Browse files Browse the repository at this point in the history
maybe, either: fix "extend" type signatures
  • Loading branch information
davidchambers authored Dec 18, 2016
2 parents f6aae43 + c89a474 commit 6732cf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@
[$Maybe(a), $.Function, b],
Maybe$prototype$sequence);

//# Maybe#extend :: Maybe a ~> (Maybe a -> a) -> Maybe a
//# Maybe#extend :: Maybe a ~> (Maybe a -> b) -> Maybe b
//.
//. Takes a function and returns `this` if `this` is Nothing; otherwise
//. it returns a Just whose value is the result of applying the function
Expand Down Expand Up @@ -1858,7 +1858,7 @@
[$Either(a, b), $.Function, c],
Either$prototype$sequence);

//# Either#extend :: Either a b ~> (Either a b -> b) -> Either a b
//# Either#extend :: Either a b ~> (Either a b -> c) -> Either a c
//.
//. Takes a function and returns `this` if `this` is a Left; otherwise it
//. returns a Right whose value is the result of applying the function to
Expand Down

0 comments on commit 6732cf0

Please sign in to comment.