| Copyright | (c) 2020 Emily Pillmore |
|---|---|
| License | BSD-style |
| Maintainer | Emily Pillmore <emilypi@cohomolo.gy> |
| Stability | Experimental |
| Portability | FlexibleInstances, MPTC, Type Families, UndecideableInstances |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.Can.Lens
Contents
Description
Prisms and Traversals for the Can datatype.
Prisms
_Non :: Prism' (Can a b) () Source #
A Prism' selecting the Non constructor.
Note: cannot change type.
_Two :: Prism' (Can a b) (a, b) Source #
A Prism' selecting the Two constructor.
Note: cannot change type.
Traversals
oneing :: Traversal (Can a c) (Can b c) a b Source #
A Traversal of the first parameter, suitable for use
with Control.Lens.
enoing :: Traversal (Can a b) (Can a c) b c Source #
A Traversal of the second parameter, suitable for use
with Control.Lens.
twoed :: Traversal' (Can a b) (a, b) Source #
A Traversal of the pair, suitable for use
with Control.Lens.
twoing :: Traversal (Can a a) (Can b b) a b Source #
A Traversal of the pair ala both, suitable for use
with Control.Lens.