sanctuary-js / sanctuary

:see_no_evil: Refuge from unsafe JavaScript
https://sanctuary.js.org
MIT License
3.03k stars 94 forks source link

maybe, either: remove S.toMaybe and S.toEither #632

Closed davidchambers closed 5 years ago

davidchambers commented 5 years ago

Closes #465

These functions are often misused. I have seen code like this in the Gitter room on several occasions:

S.fromMaybe (y) (S.map (f) (S.toMaybe (x)))

I am removing these functions for several reasons: