Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data FocusedGrid cs a = FocusedGrid {
- focusedGrid :: Grid cs a
- focusedGridPosition :: Coord cs
Documentation
data FocusedGrid cs a Source #
Similar to Grid
, but this has a focus on a certain square. Becuase of this we loose some instances, such as Applicative
, but we gain a Comonad
and ComonadStore
instance. We can convert between a focused and unfocused list using facilites in IsGrid
FocusedGrid | |
|
(KnownNat (MaxCoordSize * cs), All * IsCoord cs, All * Monoid cs, All * Semigroup cs) => IsGrid cs (FocusedGrid cs) Source # | |
Functor (FocusedGrid cs) Source # | |
Foldable (FocusedGrid cs) Source # | |
Traversable (FocusedGrid cs) Source # | |
(KnownNat (MaxCoordSize * cs), All * IsCoord cs, All * Monoid cs, All * Semigroup cs, SListI * cs) => Comonad (FocusedGrid cs) Source # | |
(KnownNat (MaxCoordSize * cs), All * IsCoord cs, All * Monoid cs, All * Semigroup cs, SListI * cs) => ComonadStore (Coord cs) (FocusedGrid cs) Source # | |