grids-0.5.0.0
Data.Grid.Internal.Lens
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
Grid
Coord