HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduletime-compat-1.9.8Haskell2010

Data.Time.Calendar.Month.Compat

  • 1 type
  • 8 values
  • Packagetime-compat-1.9.8
  • 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

Instances13Enum, 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
  • Hashable MonthDefined in time-compat-1.9.8 · Data.Time.Orphans · orphan
  • 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
  • Lift MonthDefined in time-compat-1.9.8 · Data.Time.Orphans · 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.

time-compat extras

4 declarations