{-# LANGUAGE Rank2Types #-}
module Lens.Family2.Stock (
_1, _2
, chosen
, ix
, at, intAt
, at', intAt'
, contains, intContains
, left, right
, just, nothing
, both
, bend, lend
, cod
, both'
, bend', lend'
, both_
, bend_, lend_
, left_, right_
, just_, nothing_
, ignored
, mapped
, Stock.alongside
, Stock.backwards
, Stock.beside, Stock.beside', Stock.beside_
, Stock.choosing
, Stock.from
, Stock.AlongsideLeft, Stock.AlongsideRight
, Stock.FromF, Stock.FromG
, Lens, Lens'
, Grate, Grate'
, Traversal, Traversal'
, Setter
, Stock.AdapterLike, Stock.AdapterLike'
, Stock.LensLike, Stock.LensLike'
, Stock.Identical, Stock.Backwards
, Stock.FiniteBits
, lft, rgt
, some, none
, lft_, rgt_
, some_, none_
) where
import qualified Data.Map as Map
import qualified Data.Set as Set
import qualified Data.IntMap as IntMap
import qualified Data.IntSet as IntSet
import qualified Lens.Family.Stock as Stock
import Lens.Family2
_1 :: Lens (a, r) (b, r) a b
_1 :: LensLike f (a, r) (b, r) a b
_1 = LensLike f (a, r) (b, r) a b
forall (f :: * -> *) a r b.
Functor f =>
LensLike f (a, r) (b, r) a b
Stock._1
_2 :: Lens (r, a) (r, b) a b
_2 :: LensLike f (r, a) (r, b) a b
_2 = LensLike f (r, a) (r, b) a b
forall (f :: * -> *) r a b.
Functor f =>
LensLike f (r, a) (r, b) a b
Stock._2
chosen :: Lens (Either a a) (Either b b) a b
chosen :: LensLike f (Either a a) (Either b b) a b
chosen = LensLike f (Either a a) (Either b b) a b
forall (f :: * -> *) a b.
Functor f =>
LensLike f (Either a a) (Either b b) a b
Stock.chosen
ix :: Eq k => k -> Lens' (k -> v) v
ix :: k -> Lens' (k -> v) v
ix k
k = k -> LensLike' f (k -> v) v
forall k (f :: * -> *) v.
(Eq k, Functor f) =>
k -> LensLike' f (k -> v) v
Stock.ix k
k
at :: Ord k => k -> Lens' (Map.Map k v) (Maybe v)
at :: k -> Lens' (Map k v) (Maybe v)
at k
k = k -> LensLike' f (Map k v) (Maybe v)
forall k (f :: * -> *) v.
(Ord k, Functor f) =>
k -> LensLike' f (Map k v) (Maybe v)
Stock.at k
k
intAt :: Int -> Lens' (IntMap.IntMap v) (Maybe v)
intAt :: Int -> Lens' (IntMap v) (Maybe v)
intAt Int
i = Int -> LensLike' f (IntMap v) (Maybe v)
forall (f :: * -> *) v.
Functor f =>
Int -> LensLike' f (IntMap v) (Maybe v)
Stock.intAt Int
i
at' :: Ord k => k -> Lens' (Map.Map k v) (Maybe v)
at' :: k -> Lens' (Map k v) (Maybe v)
at' k
k = k -> LensLike' f (Map k v) (Maybe v)
forall k (f :: * -> *) v.
(Ord k, Functor f) =>
k -> LensLike' f (Map k v) (Maybe v)
Stock.at' k
k
intAt' :: Int -> Lens' (IntMap.IntMap v) (Maybe v)
intAt' :: Int -> Lens' (IntMap v) (Maybe v)
intAt' Int
i = Int -> LensLike' f (IntMap v) (Maybe v)
forall (f :: * -> *) v.
Functor f =>
Int -> LensLike' f (IntMap v) (Maybe v)
Stock.intAt' Int
i
contains :: Ord k => k -> Lens' (Set.Set k) Bool
contains :: k -> Lens' (Set k) Bool
contains k
k = k -> LensLike' f (Set k) Bool
forall k (f :: * -> *).
(Ord k, Functor f) =>
k -> LensLike' f (Set k) Bool
Stock.contains k
k
intContains :: Int -> Lens' IntSet.IntSet Bool
intContains :: Int -> Lens' IntSet Bool
intContains Int
i = Int -> LensLike' f IntSet Bool
forall (f :: * -> *). Functor f => Int -> LensLike' f IntSet Bool
Stock.intContains Int
i
cod :: Grate (r -> a) (r -> b) a b
cod :: GrateLike g (r -> a) (r -> b) a b
cod = GrateLike g (r -> a) (r -> b) a b
forall (g :: * -> *) r a b.
Functor g =>
GrateLike g (r -> a) (r -> b) a b
Stock.cod
left :: Prism (Either a r) (Either b r) a b
left :: AdapterLike f g (Either a r) (Either b r) a b
left = AdapterLike f g (Either a r) (Either b r) a b
forall (f :: * -> *) (g :: * -> *) a r b.
(Applicative f, Traversable g) =>
AdapterLike f g (Either a r) (Either b r) a b
Stock.left
left_ :: Traversal (Either a r) (Either b r) a b
left_ :: LensLike f (Either a r) (Either b r) a b
left_ = LensLike f (Either a r) (Either b r) a b
forall (f :: * -> *) a r b.
Applicative f =>
LensLike f (Either a r) (Either b r) a b
Stock.left_
right :: Prism (Either r a) (Either r b) a b
right :: AdapterLike f g (Either r a) (Either r b) a b
right = AdapterLike f g (Either r a) (Either r b) a b
forall (f :: * -> *) (g :: * -> *) r a b.
(Applicative f, Traversable g) =>
AdapterLike f g (Either r a) (Either r b) a b
Stock.right
right_ :: Traversal (Either r a) (Either r b) a b
right_ :: LensLike f (Either r a) (Either r b) a b
right_ = LensLike f (Either r a) (Either r b) a b
forall (f :: * -> *) r a b.
Applicative f =>
LensLike f (Either r a) (Either r b) a b
Stock.right_
just :: Prism (Maybe a) (Maybe b) a b
just :: AdapterLike f g (Maybe a) (Maybe b) a b
just = AdapterLike f g (Maybe a) (Maybe b) a b
forall (f :: * -> *) (g :: * -> *) a b.
(Applicative f, Traversable g) =>
AdapterLike f g (Maybe a) (Maybe b) a b
Stock.just
just_ :: Traversal (Maybe a) (Maybe b) a b
just_ :: LensLike f (Maybe a) (Maybe b) a b
just_ = LensLike f (Maybe a) (Maybe b) a b
forall (f :: * -> *) a b.
Applicative f =>
LensLike f (Maybe a) (Maybe b) a b
Stock.just_
nothing :: Prism' (Maybe a) ()
nothing :: AdapterLike' f g (Maybe a) ()
nothing = AdapterLike' f g (Maybe a) ()
forall (f :: * -> *) (g :: * -> *) a.
(Applicative f, Traversable g) =>
AdapterLike' f g (Maybe a) ()
Stock.nothing
nothing_ :: Traversal' (Maybe a) ()
nothing_ :: LensLike' f (Maybe a) ()
nothing_ = LensLike' f (Maybe a) ()
forall (f :: * -> *) a. Applicative f => LensLike' f (Maybe a) ()
Stock.nothing_
both :: Grid (a,a) (b,b) a b
both :: AdapterLike f g (a, a) (b, b) a b
both = AdapterLike f g (a, a) (b, b) a b
forall (f :: * -> *) (g :: * -> *) a b.
(Applicative f, Functor g) =>
AdapterLike f g (a, a) (b, b) a b
Stock.both
both' :: Grate (a,a) (b,b) a b
both' :: GrateLike g (a, a) (b, b) a b
both' = GrateLike g (a, a) (b, b) a b
forall (g :: * -> *) a b.
Functor g =>
GrateLike g (a, a) (b, b) a b
Stock.both'
both_ :: Traversal (a,a) (b,b) a b
both_ :: LensLike f (a, a) (b, b) a b
both_ = LensLike f (a, a) (b, b) a b
forall (f :: * -> *) a b.
Applicative f =>
LensLike f (a, a) (b, b) a b
Stock.both_
lend :: Stock.FiniteBits b => Grid' b Bool
lend :: Grid' b Bool
lend = AdapterLike' f g b Bool
forall b (f :: * -> *) (g :: * -> *).
(FiniteBits b, Applicative f, Functor g) =>
AdapterLike' f g b Bool
Stock.lend
lend' :: Stock.FiniteBits b => Grate' b Bool
lend' :: Grate' b Bool
lend' = GrateLike' g b Bool
forall b (g :: * -> *).
(FiniteBits b, Functor g) =>
GrateLike' g b Bool
Stock.lend'
lend_ :: Stock.FiniteBits b => Traversal' b Bool
lend_ :: Traversal' b Bool
lend_ = LensLike' f b Bool
forall b (f :: * -> *).
(FiniteBits b, Applicative f) =>
LensLike' f b Bool
Stock.lend_
bend :: Stock.FiniteBits b => Grid' b Bool
bend :: Grid' b Bool
bend = AdapterLike' f g b Bool
forall b (f :: * -> *) (g :: * -> *).
(FiniteBits b, Applicative f, Functor g) =>
AdapterLike' f g b Bool
Stock.bend
bend' :: Stock.FiniteBits b => Grate' b Bool
bend' :: Grate' b Bool
bend' = GrateLike' g b Bool
forall b (g :: * -> *).
(FiniteBits b, Functor g) =>
GrateLike' g b Bool
Stock.bend'
bend_ :: Stock.FiniteBits b => Traversal' b Bool
bend_ :: Traversal' b Bool
bend_ = LensLike' f b Bool
forall b (f :: * -> *).
(FiniteBits b, Applicative f) =>
LensLike' f b Bool
Stock.bend_
ignored :: Traversal a a b b'
ignored :: LensLike f a a b b'
ignored = LensLike f a a b b'
forall (f :: * -> *) null s. Applicative f => null -> s -> f s
Stock.ignored
mapped :: Functor f => Setter (f a) (f a') a a'
mapped :: Setter (f a) (f a') a a'
mapped = LensLike f (f a) (f a') a a'
forall (f :: * -> *) (h :: * -> *) a b.
(Identical f, Functor h) =>
LensLike f (h a) (h b) a b
Stock.mapped
{-# DEPRECATED lft "Renamed as 'left'." #-}
lft :: Prism (Either a r) (Either b r) a b
lft :: AdapterLike f g (Either a r) (Either b r) a b
lft = AdapterLike f g (Either a r) (Either b r) a b
forall a r b. Prism (Either a r) (Either b r) a b
left
{-# DEPRECATED lft_ "Renamed as 'left_'." #-}
lft_ :: Traversal (Either a r) (Either b r) a b
lft_ :: LensLike f (Either a r) (Either b r) a b
lft_ = LensLike f (Either a r) (Either b r) a b
forall a r b. Traversal (Either a r) (Either b r) a b
left_
{-# DEPRECATED rgt "Renamed as 'right'." #-}
rgt :: Prism (Either r a) (Either r b) a b
rgt :: AdapterLike f g (Either r a) (Either r b) a b
rgt = AdapterLike f g (Either r a) (Either r b) a b
forall r a b. Prism (Either r a) (Either r b) a b
right
{-# DEPRECATED rgt_ "Renamed as 'right_'." #-}
rgt_ :: Traversal (Either r a) (Either r b) a b
rgt_ :: LensLike f (Either r a) (Either r b) a b
rgt_ = LensLike f (Either r a) (Either r b) a b
forall r a b. Traversal (Either r a) (Either r b) a b
right_
{-# DEPRECATED some "Renamed as 'just'." #-}
some :: Prism (Maybe a) (Maybe b) a b
some :: AdapterLike f g (Maybe a) (Maybe b) a b
some = AdapterLike f g (Maybe a) (Maybe b) a b
forall a b. Prism (Maybe a) (Maybe b) a b
just
{-# DEPRECATED some_ "Renamed as 'just_'." #-}
some_ :: Traversal (Maybe a) (Maybe b) a b
some_ :: LensLike f (Maybe a) (Maybe b) a b
some_ = LensLike f (Maybe a) (Maybe b) a b
forall a b. Traversal (Maybe a) (Maybe b) a b
just_
{-# DEPRECATED none "Renamed as 'nothing'." #-}
none :: Prism' (Maybe a) ()
none :: AdapterLike' f g (Maybe a) ()
none = AdapterLike' f g (Maybe a) ()
forall a. Prism' (Maybe a) ()
nothing
{-# DEPRECATED none_ "Renamed as 'nothing_'." #-}
none_ :: Traversal' (Maybe a) ()
none_ :: LensLike' f (Maybe a) ()
none_ = LensLike' f (Maybe a) ()
forall a. Traversal' (Maybe a) ()
nothing_