NOTE: this package is not compatible with Elm 0.19.1
elm-monocle compatible Prisms.
Prisms
Prism for the Left value. Also known as _Left in other languages.
Prism
Left
_Left
.getOption leftp (Left 1) == Just 1 .getOption leftp (Right "fish") == Nothing .reverseGet leftp 2 == Left 2
Prism for the Right value. Also known as _Right in other languages.
Right
_Right
.getOption rightp (Left 1) == Nothing .getOption rightp (Right "fish") == Just "fish" .reverseGet rightp 2 == Right 2
Prismfor theLeftvalue. Also known as_Leftin other languages.