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

Safe HaskellNone
LanguageHaskell2010

Data.RAList.NonEmpty.Optics

Contents

Synopsis

Indexing

Orphan instances

FunctorWithIndex Int NERAList Source # 
Instance details

Methods

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

FoldableWithIndex Int NERAList Source # 
Instance details

Methods

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

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

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

TraversableWithIndex Int NERAList Source # 
Instance details

Methods

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

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

Methods

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

Ixed (NERAList a) Source # 
Instance details

Associated Types

type IxKind (NERAList a) :: OpticKind #

Methods

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