strict-containers-lens-0.2: Strict containers - Lens instances
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Strict.Vector.Lens

Synopsis

Documentation

toVectorOf :: Getting (Endo [a]) s a -> s -> Vector a Source #

Analogous to toVectorOf.

vector :: Iso [a] [b] (Vector a) (Vector b) Source #

Analogous to vector.

forced :: Iso (Vector a) (Vector b) (Vector a) (Vector b) Source #

Analogous to forced.

sliced Source #

Arguments

:: Int

i starting index

-> Int

n length

-> Lens' (Vector a) (Vector a) 

Analogous to sliced.

Orphan instances

Ixed (Vector a) Source # 
Instance details

Methods

ix :: Index (Vector a) -> Traversal' (Vector a) (IxValue (Vector a)) #

AsEmpty (Vector a) Source # 
Instance details

Methods

_Empty :: Prism' (Vector a) () #

Reversing (Vector a) Source # 
Instance details

Methods

reversing :: Vector a -> Vector a #

Wrapped (Vector a) Source # 
Instance details

Associated Types

type Unwrapped (Vector a) #

Methods

_Wrapped' :: Iso' (Vector a) (Unwrapped (Vector a)) #

t ~ Vector a' => Rewrapped (Vector a) t Source # 
Instance details

Cons (Vector a) (Vector b) a b Source # 
Instance details

Methods

_Cons :: Prism (Vector a) (Vector b) (a, Vector a) (b, Vector b) #

Snoc (Vector a) (Vector b) a b Source # 
Instance details

Methods

_Snoc :: Prism (Vector a) (Vector b) (Vector a, a) (Vector b, b) #

Each (Vector a) (Vector b) a b Source # 
Instance details

Methods

each :: Traversal (Vector a) (Vector b) a b #