Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Year quarters.
Synopsis
- data QuarterOfYear
- addQuarters :: Integer -> Quarter -> Quarter
- diffQuarters :: Quarter -> Quarter -> Integer
- newtype Quarter = MkQuarter Integer
- pattern YearQuarter :: Year -> QuarterOfYear -> Quarter
- monthOfYearQuarter :: MonthOfYear -> QuarterOfYear
- monthQuarter :: Month -> Quarter
- dayQuarter :: Day -> Quarter
Documentation
data QuarterOfYear Source #
Quarters of each year. Each quarter corresponds to three months.
Instances
An absolute count of year quarters.
Number is equal to (year * 4) + (quarterOfYear - 1)
.
Instances
pattern YearQuarter :: Year -> QuarterOfYear -> Quarter Source #
Bidirectional abstract constructor.
monthQuarter :: Month -> Quarter Source #
dayQuarter :: Day -> Quarter Source #