https://github.com/toastal/either
Elm Either
https://github.com/toastal/either
either elm result sum-types union-types
Last synced: 7 months ago
JSON representation
Elm Either
- Host: GitHub
- URL: https://github.com/toastal/either
- Owner: toastal
- License: apache-2.0
- Created: 2016-08-31T04:09:23.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2024-01-19T18:15:26.000Z (over 1 year ago)
- Last Synced: 2025-03-18T15:54:42.479Z (7 months ago)
- Topics: either, elm, result, sum-types, union-types
- Language: Elm
- Homepage: http://package.elm-lang.org/packages/toastal/either/latest
- Size: 99.6 KB
- Stars: 24
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
Either
======A generic structure for a type with two possibilities: a ``Left a`` or a ``Right b``.
An `Either` is right-biased, so most operations will be applied to the ``Right``\—although many operations are provided for ``Left`` as well.
This is similar to Result_ type in core_, but is more generic.
If you’re looking for a data type to do error handling, you should use ``Result`` instead... |Result| replace:: ``Result``
.. _Result: http://package.elm-lang.org/packages/elm-lang/core/latest/Result
.. |core| replace:: ``core``
.. _core: http://package.elm-lang.org/packages/elm/core/latestProject & Community Notes
=========================This project is regrettably available on GitHub_.
The Elm community has tied itself to the closed-source, Microsoft-owned code forge of GitHub for package registry and identity.
This does not protect the privacy or freedom of its community members... _GitHub: https://github.com/toastal/either
License
=======This project is licensed under Apache License 2.0 (Apache-2.0_) - ``LICENSE.txt`` file in this project for details.
.. _Apache-2.0: https://www.apache.org/licenses/LICENSE-2.0
Funding
=======If you want to make a small contribution to th maintenance of this & other projects.
Crowdfunding
• Liberapay: `@toastal `_Cryptocurrency
• Bitcoin: 39nLVxrXPnD772dEqWFwfZZbfTv5BvV89y_ (`BTC verified on Keybase `_)
• Zcash: t1a9pD1D2SDTTd7dbc15KnKsyYXtGcjHuZZ_ (`ZEC verified on Keybase `_).. _39nLVxrXPnD772dEqWFwfZZbfTv5BvV89y: bitcoin://39nLVxrXPnD772dEqWFwfZZbfTv5BvV89y?message=Funding%20toastal%E2%80%99s%20nvim-tree-sitter-unicode-conceal%20development
.. _t1a9pD1D2SDTTd7dbc15KnKsyYXtGcjHuZZ: zcash://t1a9pD1D2SDTTd7dbc15KnKsyYXtGcjHuZZ?message=Funding%20toastal%E2%80%99s%20nvim-tree-sitter-unicode-conceal%20development