Copyright | (c) 2020 Emily Pillmore |
---|---|
License | BSD-style |
Maintainer | Emily Pillmore <emilypi@cohomolo.gy> |
Stability | Experimental |
Portability | FlexibleInstances, MPTC, Type Families, UndecideableInstances |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Prism
s and Traversal
s for the Wedge
datatype.
Traversals
here :: Traversal' (Wedge a b) a Source #
A Traversal
of the Here
case of a Wedge
,
suitable for use with Control.Lens.
>>>
over here show (Here 1)
Here "1"
>>>
over here show (There 'a')
There 'a'
there :: Traversal' (Wedge a b) b Source #
A Traversal
of the There
case of a Wedge
,
suitable for use with Control.Lens.
>>>
over there show (Here 1)
Here 1
>>>
over there show (There 'a')
There "'a'"
_Nowhere :: Traversal' (Wedge a b) () Source #
A Traversal'
selecting the Nowhere
constructor.
Note: cannot change type.