bishbosh-0.1.2.0: Plays chess.
Safe HaskellNone
LanguageHaskell2010

BishBosh.Type.Length

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
  • Defines distinct types for various conceptually different length-related quantities to prevent accidental conflation.
  • Nothing but the type is exported, facilitating reversion to unwrapped types.
  • CAVEAT: use of narrow numeric types, results in marginally slower performance without any reduction in space-requirements.
Synopsis
  • type X = Base
  • type Y = Base
  • type Row = Base
  • type Column = Base

Types

Type-synonyms

Data-types

type X = Base Source #

The board-abscissa.

type Y = Base Source #

The board-ordinate; independent of X.

type Row = Base Source #

Indexes screen-coordinates in the vertical direction.

type Column = Base Source #

Indexes screen-coordinates in the horizontal direction.