Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Lens.Family2.Stock
Description
This module contains lenses, prisms, grids, grates and traversals for common structures in Haskell. It also contains the combinators for various kinds of optics.
A Function name with '
is a grate variant of a grid, and a function name with _
is a traversal variants of a grid or prism.
For example, both'
is the grate variant of both
while both_
is the traversal variant.
Synopsis
- _1 :: forall a r b f. Functor f => LensLike f (a, r) (b, r) a b
- _2 :: forall r a b f. Functor f => LensLike f (r, a) (r, b) a b
- chosen :: forall a b f. Functor f => LensLike f (Either a a) (Either b b) a b
- ix :: Eq k => k -> Lens' (k -> v) v
- at :: Ord k => k -> Lens' (Map k v) (Maybe v)
- intAt :: Int -> Lens' (IntMap v) (Maybe v)
- at' :: Ord k => k -> Lens' (Map k v) (Maybe v)
- intAt' :: Int -> Lens' (IntMap v) (Maybe v)
- contains :: Ord k => k -> Lens' (Set k) Bool
- intContains :: Int -> Lens' IntSet Bool
- left :: forall a r b f g. (Applicative f, Traversable g) => AdapterLike f g (Either a r) (Either b r) a b
- right :: forall r a b f g. (Applicative f, Traversable g) => AdapterLike f g (Either r a) (Either r b) a b
- just :: forall a b f g. (Applicative f, Traversable g) => AdapterLike f g (Maybe a) (Maybe b) a b
- nothing :: forall a f g. (Applicative f, Traversable g) => AdapterLike' f g (Maybe a) ()
- both :: forall a b f g. (Applicative f, Functor g) => AdapterLike f g (a, a) (b, b) a b
- bend :: FiniteBits b => Grid' b Bool
- lend :: FiniteBits b => Grid' b Bool
- cod :: forall r a b g. Functor g => GrateLike g (r -> a) (r -> b) a b
- both' :: forall a b g. Functor g => GrateLike g (a, a) (b, b) a b
- bend' :: FiniteBits b => Grate' b Bool
- lend' :: FiniteBits b => Grate' b Bool
- both_ :: forall a b f. Applicative f => LensLike f (a, a) (b, b) a b
- bend_ :: FiniteBits b => Traversal' b Bool
- lend_ :: FiniteBits b => Traversal' b Bool
- left_ :: forall a r b f. Applicative f => LensLike f (Either a r) (Either b r) a b
- right_ :: forall r a b f. Applicative f => LensLike f (Either r a) (Either r b) a b
- just_ :: forall a b f. Applicative f => LensLike f (Maybe a) (Maybe b) a b
- nothing_ :: forall a f. Applicative f => LensLike' f (Maybe a) ()
- ignored :: forall a b b' f. Applicative f => LensLike f a a b b'
- mapped :: forall (f :: Type -> Type) a a'. Functor f => Setter (f a) (f a') a a'
- alongside :: Functor f => LensLike (AlongsideLeft f b1) s0 t0 a0 b0 -> LensLike (AlongsideRight f t0) s1 t1 a1 b1 -> LensLike f (s0, s1) (t0, t1) (a0, a1) (b0, b1)
- backwards :: LensLike (Backwards f) s t a b -> LensLike f s t a b
- beside :: (Applicative f, Functor g) => AdapterLike f g s0 t0 a b -> AdapterLike f g s1 t1 a b -> AdapterLike f g (s0, s1) (t0, t1) a b
- beside' :: Functor g => GrateLike g s0 t0 a b -> GrateLike g s1 t1 a b -> GrateLike g (s0, s1) (t0, t1) a b
- beside_ :: Applicative f => LensLike f s0 t0 a b -> LensLike f s1 t1 a b -> LensLike f (s0, s1) (t0, t1) a b
- choosing :: Functor f => LensLike f s0 t0 a b -> LensLike f s1 t1 a b -> LensLike f (Either s0 s1) (Either t0 t1) a b
- from :: (Functor f, Functor g) => AdapterLike (FromF (g s -> f t) (f b) g) (FromG (f b) f) b a t s -> AdapterLike f g s t a b
- data AlongsideLeft (f :: Type -> Type) b a
- data AlongsideRight (f :: Type -> Type) a b
- data FromF i j (g :: Type -> Type) x
- data FromG e (f :: Type -> Type) x
- type Lens s t a b = forall (f :: Type -> Type). Functor f => LensLike f s t a b
- type Lens' s a = forall (f :: Type -> Type). Functor f => LensLike' f s a
- type Grate s t a b = forall (g :: Type -> Type). Functor g => GrateLike g s t a b
- type Grate' s a = forall (g :: Type -> Type). Functor g => GrateLike' g s a
- type Traversal s t a b = forall (f :: Type -> Type). Applicative f => LensLike f s t a b
- type Traversal' s a = forall (f :: Type -> Type). Applicative f => LensLike' f s a
- type Setter s t a b = forall (f :: Type -> Type). Identical f => LensLike f s t a b
- type AdapterLike (f :: Type -> Type) (g :: Type -> Type) s t a b = (g a -> f b) -> g s -> f t
- type AdapterLike' (f :: Type -> Type) (g :: Type -> Type) s a = (g a -> f a) -> g s -> f s
- type LensLike (f :: Type -> Type) s t a b = (a -> f b) -> s -> f t
- type LensLike' (f :: Type -> Type) s a = (a -> f a) -> s -> f s
- class (Traversable f, Applicative f) => Identical (f :: Type -> Type)
- data Backwards (f :: k -> Type) (a :: k)
- class Bits b => FiniteBits b
- lft :: forall a r b f g. (Applicative f, Traversable g) => AdapterLike f g (Either a r) (Either b r) a b
- rgt :: forall r a b f g. (Applicative f, Traversable g) => AdapterLike f g (Either r a) (Either r b) a b
- some :: forall a b f g. (Applicative f, Traversable g) => AdapterLike f g (Maybe a) (Maybe b) a b
- none :: forall a f g. (Applicative f, Traversable g) => AdapterLike' f g (Maybe a) ()
- lft_ :: forall a r b f. Applicative f => LensLike f (Either a r) (Either b r) a b
- rgt_ :: forall r a b f. Applicative f => LensLike f (Either r a) (Either r b) a b
- some_ :: forall a b f. Applicative f => LensLike f (Maybe a) (Maybe b) a b
- none_ :: forall a f. Applicative f => LensLike' f (Maybe a) ()
Stock Lenses
_1 :: forall a r b f. Functor f => LensLike f (a, r) (b, r) a b Source #
Lens on the first element of a pair.
_2 :: forall r a b f. Functor f => LensLike f (r, a) (r, b) a b Source #
Lens on the second element of a pair.
chosen :: forall a b f. Functor f => LensLike f (Either a a) (Either b b) a b Source #
Lens on the Left or Right element of an (Either
a a).
at' :: Ord k => k -> Lens' (Map k v) (Maybe v) Source #
Lens providing strict access to a given point of a Map
.
intAt' :: Int -> Lens' (IntMap v) (Maybe v) Source #
Lens providing strict access to a given point of a IntMap
.
Stock Prisms
left :: forall a r b f g. (Applicative f, Traversable g) => AdapterLike f g (Either a r) (Either b r) a b Source #
right :: forall r a b f g. (Applicative f, Traversable g) => AdapterLike f g (Either r a) (Either r b) a b Source #
just :: forall a b f g. (Applicative f, Traversable g) => AdapterLike f g (Maybe a) (Maybe b) a b Source #
nothing :: forall a f g. (Applicative f, Traversable g) => AdapterLike' f g (Maybe a) () Source #
Stock Grids
both :: forall a b f g. (Applicative f, Functor g) => AdapterLike f g (a, a) (b, b) a b Source #
A grid on both elements of a pair (a,a)
.
bend :: FiniteBits b => Grid' b Bool Source #
A grid from the most significant bit to the least significant bit of a FiniteBits
type.
Big endian order.
lend :: FiniteBits b => Grid' b Bool Source #
A grid from the least significant bit to the most significant bit of a FiniteBits
type.
Little endian order.
Stock Grates
cod :: forall r a b g. Functor g => GrateLike g (r -> a) (r -> b) a b Source #
A grate accessing the codomain of a function.
both' :: forall a b g. Functor g => GrateLike g (a, a) (b, b) a b Source #
A grate on both elements of a pair (a,a)
.
bend' :: FiniteBits b => Grate' b Bool Source #
A grate from the most significant bit to the least significant bit of a FiniteBits
type.
Big endian order.
lend' :: FiniteBits b => Grate' b Bool Source #
A grate from the least significant bit to the most significant bit of a FiniteBits
type.
Little endian order.
Stock Traversals
both_ :: forall a b f. Applicative f => LensLike f (a, a) (b, b) a b Source #
Traversals on both elements of a pair (a,a)
.
bend_ :: FiniteBits b => Traversal' b Bool Source #
A traversal from the most significant bit to the least significant bit of a FiniteBits
type.
Big endian order.
lend_ :: FiniteBits b => Traversal' b Bool Source #
A traversal from the least significant bit to the most significant bit of a FiniteBits
type.
Little endian order.
ignored :: forall a b b' f. Applicative f => LensLike f a a b b' Source #
The empty traveral on any type.
Stock SECs
mapped :: forall (f :: Type -> Type) a a'. Functor f => Setter (f a) (f a') a a' Source #
An SEC referencing the parameter of a functor.
Lens Combinators
alongside :: Functor f => LensLike (AlongsideLeft f b1) s0 t0 a0 b0 -> LensLike (AlongsideRight f t0) s1 t1 a1 b1 -> LensLike f (s0, s1) (t0, t1) (a0, a1) (b0, b1) Source #
alongside :: Lens s0 t0 a0 b0 -> Lens s1 t1 a1 b1 -> Lens (s0, s1) (t0, t1) (a0, a1) (b0, b1)
alongside :: Getter s0 t0 a0 b0 -> Getter s1 t1 a1 b1 -> Getter (s0, s1) (t0, t1) (a0, a1) (b0, b1)
Given two lens/getter families, make a new lens/getter on their product.
backwards :: LensLike (Backwards f) s t a b -> LensLike f s t a b Source #
backwards :: Traversal s t a b -> Traversal s t a b backwards :: Fold s t a b -> Fold s t a b
Given a traversal or fold, reverse the order that elements are traversed.
backwards :: Lens s t a b -> Lens s t a b backwards :: Getter s t a b -> Getter s t a b backwards :: Setter s t a b -> Setter s t a b
No effect on lenses, getters or setters.
beside :: (Applicative f, Functor g) => AdapterLike f g s0 t0 a b -> AdapterLike f g s1 t1 a b -> AdapterLike f g (s0, s1) (t0, t1) a b Source #
beside :: Grid s1 t1 a b -> Grid s2 t2 a b -> Grid (s1, s2) (t1, t2) a b
Given two grids referencing a type c
, create a grid on the pair referencing c
.
beside' :: Functor g => GrateLike g s0 t0 a b -> GrateLike g s1 t1 a b -> GrateLike g (s0, s1) (t0, t1) a b Source #
beside' :: Grate s0 t0 a b -> Grate s1 t1 a b -> Grate (s0, s1) (t0, t1) a b
beside' :: Resetter s0 t0 a b -> Resetter s1 t1 a b -> Resetter (s0, s1) (t0, t1) a b
Given two grates/resetters referencing a type c
, create a grate/resetter on the pair referencing c
.
beside_ :: Applicative f => LensLike f s0 t0 a b -> LensLike f s1 t1 a b -> LensLike f (s0, s1) (t0, t1) a b Source #
beside_ :: Traversal s0 t0 a b -> Traversal s1 t1 a b -> Traversal (s0, s1) (t0, t1) a b
beside_ :: Fold s0 t0 a b -> Fold s1 t1 a b -> Fold (s0, s1) (t0, t1) a b
beside_ :: Setter s0 t0 a b -> Setter s1 t1 a b -> Setter (s0, s1) (t0, t1) a b
Given two traversals/folds/setters referencing a type c
, create a traversal/fold/setter on the pair referencing c
.
choosing :: Functor f => LensLike f s0 t0 a b -> LensLike f s1 t1 a b -> LensLike f (Either s0 s1) (Either t0 t1) a b Source #
choosing :: Lens s0 t0 a b -> Lens s1 t1 a b -> Lens (Either s0 s1) (Either t0 t1) a b
choosing :: Traversal s0 t0 a b -> Traversal s1 t1 a b -> Traversal (Either s0 s1) (Either t0 t1) a b
choosing :: Getter s0 t0 a b -> Getter s1 t1 a b -> Getter (Either s0 s1) (Either t0 t1) a b
choosing :: Fold s0 t0 a b -> Fold s1 t1 a b -> Fold (Either s0 s1) (Either t0 t1) a b
choosing :: Setter s0 t0 a b -> Setter s1 t1 a b -> Setter (Either s0 s1) (Either t0 t1) a b
Given two lens/traversal/getter/fold/setter families with the same substructure, make a new lens/traversal/getter/fold/setter on Either
.
from :: (Functor f, Functor g) => AdapterLike (FromF (g s -> f t) (f b) g) (FromG (f b) f) b a t s -> AdapterLike f g s t a b Source #
from :: Adapter b a t s -> Adapter s t a b
Reverses the direction of an adapter.
from :: Getter b a t s -> Reviewer s t a b from :: Reviewer b a t s -> Getter s t a b
Changes a Getter into a Reviewer and vice versa.
Types
data AlongsideLeft (f :: Type -> Type) b a Source #
Instances
Functor f => Functor (AlongsideLeft f a) | |
Defined in Lens.Family.Stock Methods fmap :: (a0 -> b) -> AlongsideLeft f a a0 -> AlongsideLeft f a b # (<$) :: a0 -> AlongsideLeft f a b -> AlongsideLeft f a a0 # | |
Phantom f => Phantom (AlongsideLeft f a) | |
Defined in Lens.Family.Stock Methods coerce :: AlongsideLeft f a a0 -> AlongsideLeft f a b |
data AlongsideRight (f :: Type -> Type) a b Source #
Instances
Functor f => Functor (AlongsideRight f a) | |
Defined in Lens.Family.Stock Methods fmap :: (a0 -> b) -> AlongsideRight f a a0 -> AlongsideRight f a b # (<$) :: a0 -> AlongsideRight f a b -> AlongsideRight f a a0 # | |
Phantom f => Phantom (AlongsideRight f a) | |
Defined in Lens.Family.Stock Methods coerce :: AlongsideRight f a a0 -> AlongsideRight f a b |
Re-exports
type Traversal' s a = forall (f :: Type -> Type). Applicative f => LensLike' f s a Source #
type AdapterLike (f :: Type -> Type) (g :: Type -> Type) s t a b = (g a -> f b) -> g s -> f t Source #
class (Traversable f, Applicative f) => Identical (f :: Type -> Type) Source #
Minimal complete definition
extract
Instances
Identical Identity | |
Defined in Lens.Family.Identical | |
Identical f => Identical (Backwards f) | |
Defined in Lens.Family.Identical | |
(Identical f, Identical g) => Identical (Compose f g) | |
Defined in Lens.Family.Identical |
data Backwards (f :: k -> Type) (a :: k) #
The same functor, but with an Applicative
instance that performs
actions in the reverse order.
Instances
class Bits b => FiniteBits b #
The FiniteBits
class denotes types with a finite, fixed number of bits.
Since: base-4.7.0.0
Minimal complete definition
Instances
FiniteBits CBool | |
Defined in Foreign.C.Types Methods finiteBitSize :: CBool -> Int # countLeadingZeros :: CBool -> Int # countTrailingZeros :: CBool -> Int # | |
FiniteBits CChar | |
Defined in Foreign.C.Types Methods finiteBitSize :: CChar -> Int # countLeadingZeros :: CChar -> Int # countTrailingZeros :: CChar -> Int # | |
FiniteBits CInt | |
Defined in Foreign.C.Types Methods finiteBitSize :: CInt -> Int # countLeadingZeros :: CInt -> Int # countTrailingZeros :: CInt -> Int # | |
FiniteBits CIntMax | |
Defined in Foreign.C.Types Methods finiteBitSize :: CIntMax -> Int # countLeadingZeros :: CIntMax -> Int # countTrailingZeros :: CIntMax -> Int # | |
FiniteBits CIntPtr | |
Defined in Foreign.C.Types Methods finiteBitSize :: CIntPtr -> Int # countLeadingZeros :: CIntPtr -> Int # countTrailingZeros :: CIntPtr -> Int # | |
FiniteBits CLLong | |
Defined in Foreign.C.Types Methods finiteBitSize :: CLLong -> Int # countLeadingZeros :: CLLong -> Int # countTrailingZeros :: CLLong -> Int # | |
FiniteBits CLong | |
Defined in Foreign.C.Types Methods finiteBitSize :: CLong -> Int # countLeadingZeros :: CLong -> Int # countTrailingZeros :: CLong -> Int # | |
FiniteBits CPtrdiff | |
Defined in Foreign.C.Types Methods finiteBitSize :: CPtrdiff -> Int # countLeadingZeros :: CPtrdiff -> Int # countTrailingZeros :: CPtrdiff -> Int # | |
FiniteBits CSChar | |
Defined in Foreign.C.Types Methods finiteBitSize :: CSChar -> Int # countLeadingZeros :: CSChar -> Int # countTrailingZeros :: CSChar -> Int # | |
FiniteBits CShort | |
Defined in Foreign.C.Types Methods finiteBitSize :: CShort -> Int # countLeadingZeros :: CShort -> Int # countTrailingZeros :: CShort -> Int # | |
FiniteBits CSigAtomic | |
Defined in Foreign.C.Types Methods finiteBitSize :: CSigAtomic -> Int # countLeadingZeros :: CSigAtomic -> Int # countTrailingZeros :: CSigAtomic -> Int # | |
FiniteBits CSize | |
Defined in Foreign.C.Types Methods finiteBitSize :: CSize -> Int # countLeadingZeros :: CSize -> Int # countTrailingZeros :: CSize -> Int # | |
FiniteBits CUChar | |
Defined in Foreign.C.Types Methods finiteBitSize :: CUChar -> Int # countLeadingZeros :: CUChar -> Int # countTrailingZeros :: CUChar -> Int # | |
FiniteBits CUInt | |
Defined in Foreign.C.Types Methods finiteBitSize :: CUInt -> Int # countLeadingZeros :: CUInt -> Int # countTrailingZeros :: CUInt -> Int # | |
FiniteBits CUIntMax | |
Defined in Foreign.C.Types Methods finiteBitSize :: CUIntMax -> Int # countLeadingZeros :: CUIntMax -> Int # countTrailingZeros :: CUIntMax -> Int # | |
FiniteBits CUIntPtr | |
Defined in Foreign.C.Types Methods finiteBitSize :: CUIntPtr -> Int # countLeadingZeros :: CUIntPtr -> Int # countTrailingZeros :: CUIntPtr -> Int # | |
FiniteBits CULLong | |
Defined in Foreign.C.Types Methods finiteBitSize :: CULLong -> Int # countLeadingZeros :: CULLong -> Int # countTrailingZeros :: CULLong -> Int # | |
FiniteBits CULong | |
Defined in Foreign.C.Types Methods finiteBitSize :: CULong -> Int # countLeadingZeros :: CULong -> Int # countTrailingZeros :: CULong -> Int # | |
FiniteBits CUShort | |
Defined in Foreign.C.Types Methods finiteBitSize :: CUShort -> Int # countLeadingZeros :: CUShort -> Int # countTrailingZeros :: CUShort -> Int # | |
FiniteBits CWchar | |
Defined in Foreign.C.Types Methods finiteBitSize :: CWchar -> Int # countLeadingZeros :: CWchar -> Int # countTrailingZeros :: CWchar -> Int # | |
FiniteBits IntPtr | |
Defined in Foreign.Ptr Methods finiteBitSize :: IntPtr -> Int # countLeadingZeros :: IntPtr -> Int # countTrailingZeros :: IntPtr -> Int # | |
FiniteBits WordPtr | |
Defined in Foreign.Ptr Methods finiteBitSize :: WordPtr -> Int # countLeadingZeros :: WordPtr -> Int # countTrailingZeros :: WordPtr -> Int # | |
FiniteBits Int16 | Since: base-4.6.0.0 |
Defined in GHC.Int Methods finiteBitSize :: Int16 -> Int # countLeadingZeros :: Int16 -> Int # countTrailingZeros :: Int16 -> Int # | |
FiniteBits Int32 | Since: base-4.6.0.0 |
Defined in GHC.Int Methods finiteBitSize :: Int32 -> Int # countLeadingZeros :: Int32 -> Int # countTrailingZeros :: Int32 -> Int # | |
FiniteBits Int64 | Since: base-4.6.0.0 |
Defined in GHC.Int Methods finiteBitSize :: Int64 -> Int # countLeadingZeros :: Int64 -> Int # countTrailingZeros :: Int64 -> Int # | |
FiniteBits Int8 | Since: base-4.6.0.0 |
Defined in GHC.Int Methods finiteBitSize :: Int8 -> Int # countLeadingZeros :: Int8 -> Int # countTrailingZeros :: Int8 -> Int # | |
FiniteBits Word16 | Since: base-4.6.0.0 |
Defined in GHC.Word Methods finiteBitSize :: Word16 -> Int # countLeadingZeros :: Word16 -> Int # countTrailingZeros :: Word16 -> Int # | |
FiniteBits Word32 | Since: base-4.6.0.0 |
Defined in GHC.Word Methods finiteBitSize :: Word32 -> Int # countLeadingZeros :: Word32 -> Int # countTrailingZeros :: Word32 -> Int # | |
FiniteBits Word64 | Since: base-4.6.0.0 |
Defined in GHC.Word Methods finiteBitSize :: Word64 -> Int # countLeadingZeros :: Word64 -> Int # countTrailingZeros :: Word64 -> Int # | |
FiniteBits Word8 | Since: base-4.6.0.0 |
Defined in GHC.Word Methods finiteBitSize :: Word8 -> Int # countLeadingZeros :: Word8 -> Int # countTrailingZeros :: Word8 -> Int # | |
FiniteBits CBlkCnt | |
Defined in System.Posix.Types Methods finiteBitSize :: CBlkCnt -> Int # countLeadingZeros :: CBlkCnt -> Int # countTrailingZeros :: CBlkCnt -> Int # | |
FiniteBits CBlkSize | |
Defined in System.Posix.Types Methods finiteBitSize :: CBlkSize -> Int # countLeadingZeros :: CBlkSize -> Int # countTrailingZeros :: CBlkSize -> Int # | |
FiniteBits CClockId | |
Defined in System.Posix.Types Methods finiteBitSize :: CClockId -> Int # countLeadingZeros :: CClockId -> Int # countTrailingZeros :: CClockId -> Int # | |
FiniteBits CDev | |
Defined in System.Posix.Types Methods finiteBitSize :: CDev -> Int # countLeadingZeros :: CDev -> Int # countTrailingZeros :: CDev -> Int # | |
FiniteBits CFsBlkCnt | |
Defined in System.Posix.Types Methods finiteBitSize :: CFsBlkCnt -> Int # countLeadingZeros :: CFsBlkCnt -> Int # countTrailingZeros :: CFsBlkCnt -> Int # | |
FiniteBits CFsFilCnt | |
Defined in System.Posix.Types Methods finiteBitSize :: CFsFilCnt -> Int # countLeadingZeros :: CFsFilCnt -> Int # countTrailingZeros :: CFsFilCnt -> Int # | |
FiniteBits CGid | |
Defined in System.Posix.Types Methods finiteBitSize :: CGid -> Int # countLeadingZeros :: CGid -> Int # countTrailingZeros :: CGid -> Int # | |
FiniteBits CId | |
Defined in System.Posix.Types Methods finiteBitSize :: CId -> Int # countLeadingZeros :: CId -> Int # countTrailingZeros :: CId -> Int # | |
FiniteBits CIno | |
Defined in System.Posix.Types Methods finiteBitSize :: CIno -> Int # countLeadingZeros :: CIno -> Int # countTrailingZeros :: CIno -> Int # | |
FiniteBits CKey | |
Defined in System.Posix.Types Methods finiteBitSize :: CKey -> Int # countLeadingZeros :: CKey -> Int # countTrailingZeros :: CKey -> Int # | |
FiniteBits CMode | |
Defined in System.Posix.Types Methods finiteBitSize :: CMode -> Int # countLeadingZeros :: CMode -> Int # countTrailingZeros :: CMode -> Int # | |
FiniteBits CNfds | |
Defined in System.Posix.Types Methods finiteBitSize :: CNfds -> Int # countLeadingZeros :: CNfds -> Int # countTrailingZeros :: CNfds -> Int # | |
FiniteBits CNlink | |
Defined in System.Posix.Types Methods finiteBitSize :: CNlink -> Int # countLeadingZeros :: CNlink -> Int # countTrailingZeros :: CNlink -> Int # | |
FiniteBits COff | |
Defined in System.Posix.Types Methods finiteBitSize :: COff -> Int # countLeadingZeros :: COff -> Int # countTrailingZeros :: COff -> Int # | |
FiniteBits CPid | |
Defined in System.Posix.Types Methods finiteBitSize :: CPid -> Int # countLeadingZeros :: CPid -> Int # countTrailingZeros :: CPid -> Int # | |
FiniteBits CRLim | |
Defined in System.Posix.Types Methods finiteBitSize :: CRLim -> Int # countLeadingZeros :: CRLim -> Int # countTrailingZeros :: CRLim -> Int # | |
FiniteBits CSocklen | |
Defined in System.Posix.Types Methods finiteBitSize :: CSocklen -> Int # countLeadingZeros :: CSocklen -> Int # countTrailingZeros :: CSocklen -> Int # | |
FiniteBits CSsize | |
Defined in System.Posix.Types Methods finiteBitSize :: CSsize -> Int # countLeadingZeros :: CSsize -> Int # countTrailingZeros :: CSsize -> Int # | |
FiniteBits CTcflag | |
Defined in System.Posix.Types Methods finiteBitSize :: CTcflag -> Int # countLeadingZeros :: CTcflag -> Int # countTrailingZeros :: CTcflag -> Int # | |
FiniteBits CUid | |
Defined in System.Posix.Types Methods finiteBitSize :: CUid -> Int # countLeadingZeros :: CUid -> Int # countTrailingZeros :: CUid -> Int # | |
FiniteBits Fd | |
Defined in System.Posix.Types Methods finiteBitSize :: Fd -> Int # countLeadingZeros :: Fd -> Int # countTrailingZeros :: Fd -> Int # | |
FiniteBits Bool | Since: base-4.7.0.0 |
Defined in GHC.Bits Methods finiteBitSize :: Bool -> Int # countLeadingZeros :: Bool -> Int # countTrailingZeros :: Bool -> Int # | |
FiniteBits Int | Since: base-4.6.0.0 |
Defined in GHC.Bits Methods finiteBitSize :: Int -> Int # countLeadingZeros :: Int -> Int # countTrailingZeros :: Int -> Int # | |
FiniteBits Word | Since: base-4.6.0.0 |
Defined in GHC.Bits Methods finiteBitSize :: Word -> Int # countLeadingZeros :: Word -> Int # countTrailingZeros :: Word -> Int # | |
FiniteBits a => FiniteBits (And a) | Since: base-4.16 |
Defined in Data.Bits Methods finiteBitSize :: And a -> Int # countLeadingZeros :: And a -> Int # countTrailingZeros :: And a -> Int # | |
FiniteBits a => FiniteBits (Iff a) | Since: base-4.16 |
Defined in Data.Bits Methods finiteBitSize :: Iff a -> Int # countLeadingZeros :: Iff a -> Int # countTrailingZeros :: Iff a -> Int # | |
FiniteBits a => FiniteBits (Ior a) | Since: base-4.16 |
Defined in Data.Bits Methods finiteBitSize :: Ior a -> Int # countLeadingZeros :: Ior a -> Int # countTrailingZeros :: Ior a -> Int # | |
FiniteBits a => FiniteBits (Xor a) | Since: base-4.16 |
Defined in Data.Bits Methods finiteBitSize :: Xor a -> Int # countLeadingZeros :: Xor a -> Int # countTrailingZeros :: Xor a -> Int # | |
FiniteBits a => FiniteBits (Identity a) | Since: base-4.9.0.0 |
Defined in Data.Functor.Identity Methods finiteBitSize :: Identity a -> Int # countLeadingZeros :: Identity a -> Int # countTrailingZeros :: Identity a -> Int # | |
FiniteBits a => FiniteBits (Down a) | Since: base-4.14.0.0 |
Defined in Data.Ord Methods finiteBitSize :: Down a -> Int # countLeadingZeros :: Down a -> Int # countTrailingZeros :: Down a -> Int # | |
FiniteBits a => FiniteBits (Const a b) | Since: base-4.9.0.0 |
Defined in Data.Functor.Const Methods finiteBitSize :: Const a b -> Int # countLeadingZeros :: Const a b -> Int # countTrailingZeros :: Const a b -> Int # |
Deprecated names
lft :: forall a r b f g. (Applicative f, Traversable g) => AdapterLike f g (Either a r) (Either b r) a b Source #
Deprecated: Renamed as left
.
rgt :: forall r a b f g. (Applicative f, Traversable g) => AdapterLike f g (Either r a) (Either r b) a b Source #
Deprecated: Renamed as right
.
some :: forall a b f g. (Applicative f, Traversable g) => AdapterLike f g (Maybe a) (Maybe b) a b Source #
Deprecated: Renamed as just
.
none :: forall a f g. (Applicative f, Traversable g) => AdapterLike' f g (Maybe a) () Source #
Deprecated: Renamed as nothing
.
lft_ :: forall a r b f. Applicative f => LensLike f (Either a r) (Either b r) a b Source #
Deprecated: Renamed as left_
.
rgt_ :: forall r a b f. Applicative f => LensLike f (Either r a) (Either r b) a b Source #
Deprecated: Renamed as right_
.