HORIZON HASKELLDocslts/ghc-10.0.xaa25b892026-10-10Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · aa25b89 · 2026-10-10

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