time-compat-1.9.6.1: Compatibility package for time
Safe Haskell Trustworthy
Language Haskell2010

Data.Time.Calendar.Quarter.Compat

Synopsis

Documentation

data QuarterOfYear Source #

Quarters of each year. Each quarter corresponds to three months.

Instances

Instances details
Bounded QuarterOfYear Source #
Instance details

Defined in Data.Time.Calendar.Quarter.Compat

Enum QuarterOfYear Source #

maps Q1..Q4 to 1..4

Instance details

Defined in Data.Time.Calendar.Quarter.Compat

Eq QuarterOfYear Source #
Instance details

Defined in Data.Time.Calendar.Quarter.Compat

Data QuarterOfYear Source #
Instance details

Defined in Data.Time.Calendar.Quarter.Compat

Methods

gfoldl :: ( forall d b. Data d => c (d -> b) -> d -> c b) -> ( forall g. g -> c g) -> QuarterOfYear -> c QuarterOfYear Source #

gunfold :: ( forall b r. Data b => c (b -> r) -> c r) -> ( forall r. r -> c r) -> Constr -> c QuarterOfYear Source #

toConstr :: QuarterOfYear -> Constr Source #

dataTypeOf :: QuarterOfYear -> DataType Source #

dataCast1 :: Typeable t => ( forall d. Data d => c (t d)) -> Maybe (c QuarterOfYear ) Source #

dataCast2 :: Typeable t => ( forall d e. ( Data d, Data e) => c (t d e)) -> Maybe (c QuarterOfYear ) Source #

gmapT :: ( forall b. Data b => b -> b) -> QuarterOfYear -> QuarterOfYear Source #

gmapQl :: (r -> r' -> r) -> r -> ( forall d. Data d => d -> r') -> QuarterOfYear -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> ( forall d. Data d => d -> r') -> QuarterOfYear -> r Source #

gmapQ :: ( forall d. Data d => d -> u) -> QuarterOfYear -> [u] Source #

gmapQi :: Int -> ( forall d. Data d => d -> u) -> QuarterOfYear -> u Source #

gmapM :: Monad m => ( forall d. Data d => d -> m d) -> QuarterOfYear -> m QuarterOfYear Source #

gmapMp :: MonadPlus m => ( forall d. Data d => d -> m d) -> QuarterOfYear -> m QuarterOfYear Source #

gmapMo :: MonadPlus m => ( forall d. Data d => d -> m d) -> QuarterOfYear -> m QuarterOfYear Source #

Ord QuarterOfYear Source #
Instance details

Defined in Data.Time.Calendar.Quarter.Compat

Read QuarterOfYear Source #
Instance details

Defined in Data.Time.Calendar.Quarter.Compat

Show QuarterOfYear Source #
Instance details

Defined in Data.Time.Calendar.Quarter.Compat

NFData QuarterOfYear Source #
Instance details

Defined in Data.Time.Calendar.Quarter.Compat

Hashable QuarterOfYear Source #
Instance details

Defined in Data.Time.Calendar.Quarter.Compat

newtype Quarter Source #

An absolute count of year quarters. Number is equal to (year * 4) + (quarterOfYear - 1) .

Instances

Instances details
Enum Quarter Source #
Instance details

Defined in Data.Time.Calendar.Quarter.Compat

Eq Quarter Source #
Instance details

Defined in Data.Time.Calendar.Quarter.Compat

Data Quarter Source #
Instance details

Defined in Data.Time.Calendar.Quarter.Compat

Methods

gfoldl :: ( forall d b. Data d => c (d -> b) -> d -> c b) -> ( forall g. g -> c g) -> Quarter -> c Quarter Source #

gunfold :: ( forall b r. Data b => c (b -> r) -> c r) -> ( forall r. r -> c r) -> Constr -> c Quarter Source #

toConstr :: Quarter -> Constr Source #

dataTypeOf :: Quarter -> DataType Source #

dataCast1 :: Typeable t => ( forall d. Data d => c (t d)) -> Maybe (c Quarter ) Source #

dataCast2 :: Typeable t => ( forall d e. ( Data d, Data e) => c (t d e)) -> Maybe (c Quarter ) Source #

gmapT :: ( forall b. Data b => b -> b) -> Quarter -> Quarter Source #

gmapQl :: (r -> r' -> r) -> r -> ( forall d. Data d => d -> r') -> Quarter -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> ( forall d. Data d => d -> r') -> Quarter -> r Source #

gmapQ :: ( forall d. Data d => d -> u) -> Quarter -> [u] Source #

gmapQi :: Int -> ( forall d. Data d => d -> u) -> Quarter -> u Source #

gmapM :: Monad m => ( forall d. Data d => d -> m d) -> Quarter -> m Quarter Source #

gmapMp :: MonadPlus m => ( forall d. Data d => d -> m d) -> Quarter -> m Quarter Source #

gmapMo :: MonadPlus m => ( forall d. Data d => d -> m d) -> Quarter -> m Quarter Source #

Ord Quarter Source #
Instance details

Defined in Data.Time.Calendar.Quarter.Compat

Read Quarter Source #

Read as yyyy-Qn .

Instance details

Defined in Data.Time.Calendar.Quarter.Compat

Show Quarter Source #

Show as yyyy-Qn .

Instance details

Defined in Data.Time.Calendar.Quarter.Compat

Ix Quarter Source #
Instance details

Defined in Data.Time.Calendar.Quarter.Compat

NFData Quarter Source #
Instance details

Defined in Data.Time.Calendar.Quarter.Compat

Hashable Quarter Source #
Instance details

Defined in Data.Time.Calendar.Quarter.Compat

pattern YearQuarter :: Year -> QuarterOfYear -> Quarter Source #

Bidirectional abstract constructor.

time-compat extras