ral-optics-0.1: Length-indexed random access lists: optics utilities.

Safe HaskellNone
LanguageHaskell2010

Data.RAList.Optics

Contents

Synopsis

Indexing

Orphan instances

FunctorWithIndex Int RAList Source # 
Instance details

Methods

imap :: (Int -> a -> b) -> RAList a -> RAList b #

FoldableWithIndex Int RAList Source # 
Instance details

Methods

ifoldMap :: Monoid m => (Int -> a -> m) -> RAList a -> m #

ifoldr :: (Int -> a -> b -> b) -> b -> RAList a -> b #

ifoldl' :: (Int -> b -> a -> b) -> b -> RAList a -> b #

TraversableWithIndex Int RAList Source # 
Instance details

Methods

itraverse :: Applicative f => (Int -> a -> f b) -> RAList a -> f (RAList b) #

Each Int (RAList a) (RAList b) a b Source # 
Instance details

Methods

each :: IxTraversal Int (RAList a) (RAList b) a b #

Ixed (RAList a) Source # 
Instance details

Associated Types

type IxKind (RAList a) :: OpticKind #

Methods

ix :: Index (RAList a) -> Optic' (IxKind (RAList a)) NoIx (RAList a) (IxValue (RAList a)) #