HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

Moduletime-compat-1.9.9Haskell2010

Data.Time.Calendar.Month.Compat

  • 1 type
  • 8 values
  • Packagetime-compat-1.9.9
  • Exports11
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceMonth.hs
newtypenewtype Month
#

An absolute count of common calendar months. Number is equal to (year * 12) + (monthOfYear - 1).

Constructors

Instances15Enum, Eq, Data, Ord, Read, Show, …
patternpattern YearMonth :: Year -> MonthOfYear -> Month
#

Bidirectional abstract constructor. Invalid months of year will be clipped to the correct range.

patternpattern MonthDay :: Month -> DayOfMonth -> Day
#

Bidirectional abstract constructor. Invalid days of month will be clipped to the correct range.

time-compat extras

4 declarations