HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduletime-1.12.2Haskell2010

Data.Time.Calendar.Month

An absolute count of common calendar months.

  • 1 type
  • 4 values
  • Packagetime-1.12.2
  • Exports7
  • LanguageHaskell2010
  • LicenceBSD-2-Clause
  • SourceMonth.hs
newtypenewtype Month
#

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

Constructors

Instances11Enum, Eq, Data, Ord, Read, Show, …
  • Enum MonthDefined in time-1.12.2 · Data.Time.Calendar.Month
  • Eq MonthDefined in time-1.12.2 · Data.Time.Calendar.Month
  • Data MonthDefined in time-1.12.2 · Data.Time.Calendar.Month
  • Ord MonthDefined in time-1.12.2 · Data.Time.Calendar.Month
  • Read MonthDefined in time-1.12.2 · Data.Time.Calendar.Month

    Read as yyyy-mm.

  • Show MonthDefined in time-1.12.2 · Data.Time.Calendar.Month

    Show as yyyy-mm.

  • Ix MonthDefined in time-1.12.2 · Data.Time.Calendar.Month
  • NFData MonthDefined in time-1.12.2 · Data.Time.Calendar.Month
  • DayPeriod MonthDefined in time-1.12.2 · Data.Time.Calendar.Month
  • FormatTime MonthDefined in time-1.12.2 · Data.Time.Format.Format.Instances · orphan
  • ParseTime MonthDefined in time-1.12.2 · Data.Time.Format.Parse.Instances · orphan
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.