grids-0.5.0.1

Data.Grid.Internal.Lens

Synopsis

# Documentation

type Lens s t a b = forall f. Functor f => (a -> f b) -> s -> f t Source #

type Lens' s a = Lens s s a a Source #

lens :: (s -> a) -> (s -> b -> t) -> Lens s t a b Source #

cell :: forall dims a. IsGrid dims => Coord dims -> Lens' (Grid dims a) a Source #

Focus an element of a Grid given its Coord