smash-microlens-0.1.0.2: Optics for the `smash` library
Copyright(c) 2020-2022 Emily Pillmore
LicenseBSD-style
MaintainerEmily Pillmore <emilypi@cohomolo.gy>
StabilityExperimental
PortabilityFlexibleInstances, MPTC, Type Families, UndecideableInstances
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Can.Microlens

Contents

Description

Prisms and Traversals for the Can datatype.

Synopsis

Traversals

_Non :: Traversal' (Can a b) () Source #

A Traversal' selecting the Non constructor.

Note: cannot change type.

_One :: Traversal' (Can a b) a Source #

A Traversal' selecting the One constructor.

Note: cannot change type.

_Eno :: Traversal' (Can a b) b Source #

A Traversal' selecting the Eno constructor.

Note: cannot change type.

_Two :: Traversal' (Can a b) (a, b) Source #

A Traversal' selecting the Two constructor.

Note: cannot change type.

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.