Module
BetaCalendars.GridAlgebra.Grid
- Package
- purescript-betacalendars-grid-algebra
- Repository
- mateopedersen/purescript-betacalendars-grid-algebra
Pure month-grid construction and topology descriptions.
Natural grids use the smallest whole number of seven-day rows that can hold the month. Fixed grids always contain six rows. Adjacent dates are optional display context and never replace a current-month date.
#GridMode Source
#AdjacentPolicy Source
data AdjacentPolicyWhether dates outside the displayed month are rendered in spare cells.
Constructors
Instances
#CellRelation Source
#GridCell Source
type GridCell = { date :: Maybe CivilDate, index :: Int, relation :: CellRelation }One row-major cell in a month grid.
#TopologySignature Source
newtype TopologySignatureDescriptive signature of a month's shape under a selected week origin. This package-specific tuple is useful for comparing shapes; it is not an external calendar standard.
Instances
#topologySignature Source
topologySignature :: MonthTopology -> WeekStart -> TopologySignatureCreate this package's descriptive topology tuple.
#monthTopology Source
monthTopology :: Year -> Month -> WeekStart -> MonthTopologyCompute month topology without allocating its cells.
#currentMonthDays Source
currentMonthDays :: MonthGrid -> IntThe number of current-month cells in a grid.
- Modules
- BetaCalendars.
GridAlgebra - BetaCalendars.
GridAlgebra. Blank - BetaCalendars.
GridAlgebra. Boundary2027 - BetaCalendars.
GridAlgebra. Civil - BetaCalendars.
GridAlgebra. Grid - BetaCalendars.
GridAlgebra. Paper - BetaCalendars.
GridAlgebra. Validation - BetaCalendars.
GridAlgebra. WeekStart - BetaCalendars.
GridAlgebra. Year2027