Skip to content

Commit

Permalink
maybe, either: fix "extend" type signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchambers committed Dec 17, 2016
1 parent f6aae43 commit c89a474
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 c89a474

Please sign in to comment.