Safe Haskell | None |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- Defines distinct types for various countable quantities to prevent accidental conflation between conceptually different quantities.
- Nothing but the type is exported, facilitating reversion to unwrapped types.
Synopsis
- type NDecimalDigits = Base
- type NDirections = Base
- type NGames = Base
- type NLogicalColours = Base
- type NMoves = Base
- type NPieces = Base
- type NPlies = Base
- type NPositions = Base
- type NRanks = Base
- type NSeconds = Base
Types
Type-synonyms
Data-types
type NDecimalDigits = Base Source #
A number of decimal digits.
type NDirections = Base Source #
A number of decimal digits.
type NLogicalColours = Base Source #
A number of logical colours.
- A number of plies.
- CAVEAT: conceptually similar to NPositions in that a ply (half a move) defines a step down the move-tree to a new position; the difference is that positions don't necessarily relate to a consecutive sequence resulting from a game.
- CAVEAT: arguably the same type as NMoves, just double the value.
type NPositions = Base Source #
A number of positions.