| Copyright | (c) 2020-2022 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 |
Data.Smash.Lens
Isos
_SmashIso :: Iso (Smash a b) (Smash c d) (Maybe (a, b)) (Maybe (c, d)) Source #
A Iso between a smash product and pointed tuple.
Prisms
Traversals
smashed :: Traversal (Smash a b) (Smash c d) (a, b) (c, d) Source #
A Traversal of the smashed pair, suitable for use
with Control.Lens.
>>>over smashed (fmap pred) (Smash 1 2)Smash 1 1
>>>over smashed id NadaNada
smashing :: Traversal (Smash a a) (Smash b b) a b Source #
A Traversal of the smashed pair, suitable for use
with Control.Lens.
>>>over smashing show (Smash 1 2)Smash "1" "2"
>>>over smashing show NadaNada