Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class IsGrid cs grid | grid -> cs where
Documentation
class IsGrid cs grid | grid -> cs where Source #
Conversion between Grid
and FocusedGrid
and access grids at a Coord
gridIndex :: Coord cs -> Lens' (grid a) a Source #
Get the element at a grid location. This is a lens because we know it must exist
asGrid :: Lens' (grid a) (Grid cs a) Source #
Convert to, or run a function over, a Grid
asFocusedGrid :: Lens' (grid a) (FocusedGrid cs a) Source #
Convert to, or run a function over, a FocusedGrid