HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Modulebrick-3.0Haskell2010

Brick.BorderMap

Synopsis
  • Packagebrick-3.0
  • Exports26
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceBorderMap.hs
datadata BorderMap a

A BorderMap a is like a Map Location a, except that there is a rectangle, and only Locations on the border of this rectangle are retained. The BorderMap can be queried for the position and size of the rectangle. There are also efficient bulk query and bulk update operations for adjacent positions on the border.

Instances8Functor, Eq, Ord, Read, Show, Generic, …
datadata Edges a
#

Constructors

Instances10Monad, Functor, Applicative, Eq, Ord, Read, …

The positions of the edges of the rectangle whose border is retained in a BorderMap. For example, if coordinates m = e, then the top border contains the Locations on row eTop e and between columns eLeft e to eRight e inclusive.

valuebounds :: BorderMap a -> Edges (Int, Int)

A complementary way to query the edges of the rectangle whose border is retained in a BorderMap. For example, if bounds m = b, then a Location's column must be between fst (eTop b) and snd (eTop b) to be retained. See also coordinates, which is in most cases a more natural border query.