cron-0.7.1: Cron datatypes and Attoparsec parser
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.Cron.Types

Synopsis

Documentation

data CronSchedule Source #

Specification for a cron expression

Constructors

CronSchedule 

Fields

Instances

Instances details
Data CronSchedule Source # 
Instance details

Defined in System.Cron.Types

Methods

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

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

toConstr :: CronSchedule -> Constr #

dataTypeOf :: CronSchedule -> DataType #

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

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

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

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

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

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

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

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

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

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

Generic CronSchedule Source # 
Instance details

Defined in System.Cron.Types

Associated Types

type Rep CronSchedule :: Type -> Type #

Show CronSchedule Source # 
Instance details

Defined in System.Cron.Types

Eq CronSchedule Source # 
Instance details

Defined in System.Cron.Types

type Rep CronSchedule Source # 
Instance details

Defined in System.Cron.Types

newtype Crontab Source #

Crontab file, omitting comments.

Constructors

Crontab 

Instances

Instances details
Data Crontab Source # 
Instance details

Defined in System.Cron.Types

Methods

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

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

toConstr :: Crontab -> Constr #

dataTypeOf :: Crontab -> DataType #

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

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

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

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

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

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

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

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

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

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

Generic Crontab Source # 
Instance details

Defined in System.Cron.Types

Associated Types

type Rep Crontab :: Type -> Type #

Methods

from :: Crontab -> Rep Crontab x #

to :: Rep Crontab x -> Crontab #

Show Crontab Source # 
Instance details

Defined in System.Cron.Types

Eq Crontab Source # 
Instance details

Defined in System.Cron.Types

Methods

(==) :: Crontab -> Crontab -> Bool #

(/=) :: Crontab -> Crontab -> Bool #

type Rep Crontab Source # 
Instance details

Defined in System.Cron.Types

type Rep Crontab = D1 ('MetaData "Crontab" "System.Cron.Types" "cron-0.7.1-QNK1BZVJeT3rbMB0rRoua" 'True) (C1 ('MetaCons "Crontab" 'PrefixI 'True) (S1 ('MetaSel ('Just "crontabEntries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CrontabEntry])))

data CrontabEntry Source #

Essentially a line in a crontab file. It is either a schedule with a command after it or setting an environment variable (e.g. FOO=BAR)

Instances

Instances details
Data CrontabEntry Source # 
Instance details

Defined in System.Cron.Types

Methods

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

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

toConstr :: CrontabEntry -> Constr #

dataTypeOf :: CrontabEntry -> DataType #

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

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

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

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

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

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

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

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

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

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

Generic CrontabEntry Source # 
Instance details

Defined in System.Cron.Types

Associated Types

type Rep CrontabEntry :: Type -> Type #

Show CrontabEntry Source # 
Instance details

Defined in System.Cron.Types

Eq CrontabEntry Source # 
Instance details

Defined in System.Cron.Types

type Rep CrontabEntry Source # 
Instance details

Defined in System.Cron.Types

data MinuteSpec Source #

Minutes field of a cron expression

Instances

Instances details
Data MinuteSpec Source # 
Instance details

Defined in System.Cron.Types

Methods

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

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

toConstr :: MinuteSpec -> Constr #

dataTypeOf :: MinuteSpec -> DataType #

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

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

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

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

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

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

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

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

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

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

Generic MinuteSpec Source # 
Instance details

Defined in System.Cron.Types

Associated Types

type Rep MinuteSpec :: Type -> Type #

Show MinuteSpec Source # 
Instance details

Defined in System.Cron.Types

Eq MinuteSpec Source # 
Instance details

Defined in System.Cron.Types

type Rep MinuteSpec Source # 
Instance details

Defined in System.Cron.Types

type Rep MinuteSpec = D1 ('MetaData "MinuteSpec" "System.Cron.Types" "cron-0.7.1-QNK1BZVJeT3rbMB0rRoua" 'True) (C1 ('MetaCons "Minutes" 'PrefixI 'True) (S1 ('MetaSel ('Just "minuteSpec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CronField)))

newtype CronCommand Source #

Constructors

CronCommand 

Fields

Instances

Instances details
Data CronCommand Source # 
Instance details

Defined in System.Cron.Types

Methods

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

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

toConstr :: CronCommand -> Constr #

dataTypeOf :: CronCommand -> DataType #

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

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

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

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

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

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

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

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

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

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

Generic CronCommand Source # 
Instance details

Defined in System.Cron.Types

Associated Types

type Rep CronCommand :: Type -> Type #

Show CronCommand Source # 
Instance details

Defined in System.Cron.Types

Eq CronCommand Source # 
Instance details

Defined in System.Cron.Types

Ord CronCommand Source # 
Instance details

Defined in System.Cron.Types

type Rep CronCommand Source # 
Instance details

Defined in System.Cron.Types

type Rep CronCommand = D1 ('MetaData "CronCommand" "System.Cron.Types" "cron-0.7.1-QNK1BZVJeT3rbMB0rRoua" 'True) (C1 ('MetaCons "CronCommand" 'PrefixI 'True) (S1 ('MetaSel ('Just "cronCommand") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data HourSpec Source #

Hours field of a cron expression

Instances

Instances details
Data HourSpec Source # 
Instance details

Defined in System.Cron.Types

Methods

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

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

toConstr :: HourSpec -> Constr #

dataTypeOf :: HourSpec -> DataType #

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

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

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

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

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

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

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

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

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

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

Generic HourSpec Source # 
Instance details

Defined in System.Cron.Types

Associated Types

type Rep HourSpec :: Type -> Type #

Methods

from :: HourSpec -> Rep HourSpec x #

to :: Rep HourSpec x -> HourSpec #

Show HourSpec Source # 
Instance details

Defined in System.Cron.Types

Eq HourSpec Source # 
Instance details

Defined in System.Cron.Types

type Rep HourSpec Source # 
Instance details

Defined in System.Cron.Types

type Rep HourSpec = D1 ('MetaData "HourSpec" "System.Cron.Types" "cron-0.7.1-QNK1BZVJeT3rbMB0rRoua" 'True) (C1 ('MetaCons "Hours" 'PrefixI 'True) (S1 ('MetaSel ('Just "hourSpec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CronField)))

data MonthSpec Source #

Month field of a cron expression

Instances

Instances details
Data MonthSpec Source # 
Instance details

Defined in System.Cron.Types

Methods

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

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

toConstr :: MonthSpec -> Constr #

dataTypeOf :: MonthSpec -> DataType #

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

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

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

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

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

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

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

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

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

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

Generic MonthSpec Source # 
Instance details

Defined in System.Cron.Types

Associated Types

type Rep MonthSpec :: Type -> Type #

Show MonthSpec Source # 
Instance details

Defined in System.Cron.Types

Eq MonthSpec Source # 
Instance details

Defined in System.Cron.Types

type Rep MonthSpec Source # 
Instance details

Defined in System.Cron.Types

type Rep MonthSpec = D1 ('MetaData "MonthSpec" "System.Cron.Types" "cron-0.7.1-QNK1BZVJeT3rbMB0rRoua" 'True) (C1 ('MetaCons "Months" 'PrefixI 'True) (S1 ('MetaSel ('Just "monthSpec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CronField)))

data DayOfMonthSpec Source #

Day of month field of a cron expression

Instances

Instances details
Data DayOfMonthSpec Source # 
Instance details

Defined in System.Cron.Types

Methods

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

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

toConstr :: DayOfMonthSpec -> Constr #

dataTypeOf :: DayOfMonthSpec -> DataType #

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

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

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

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

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

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

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

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

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

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

Generic DayOfMonthSpec Source # 
Instance details

Defined in System.Cron.Types

Associated Types

type Rep DayOfMonthSpec :: Type -> Type #

Show DayOfMonthSpec Source # 
Instance details

Defined in System.Cron.Types

Eq DayOfMonthSpec Source # 
Instance details

Defined in System.Cron.Types

type Rep DayOfMonthSpec Source # 
Instance details

Defined in System.Cron.Types

type Rep DayOfMonthSpec = D1 ('MetaData "DayOfMonthSpec" "System.Cron.Types" "cron-0.7.1-QNK1BZVJeT3rbMB0rRoua" 'True) (C1 ('MetaCons "DaysOfMonth" 'PrefixI 'True) (S1 ('MetaSel ('Just "dayOfMonthSpec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CronField)))

data DayOfWeekSpec Source #

Day of week field of a cron expression

Instances

Instances details
Data DayOfWeekSpec Source # 
Instance details

Defined in System.Cron.Types

Methods

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

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

toConstr :: DayOfWeekSpec -> Constr #

dataTypeOf :: DayOfWeekSpec -> DataType #

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

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

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

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

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

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

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

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

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

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

Generic DayOfWeekSpec Source # 
Instance details

Defined in System.Cron.Types

Associated Types

type Rep DayOfWeekSpec :: Type -> Type #

Show DayOfWeekSpec Source # 
Instance details

Defined in System.Cron.Types

Eq DayOfWeekSpec Source # 
Instance details

Defined in System.Cron.Types

type Rep DayOfWeekSpec Source # 
Instance details

Defined in System.Cron.Types

type Rep DayOfWeekSpec = D1 ('MetaData "DayOfWeekSpec" "System.Cron.Types" "cron-0.7.1-QNK1BZVJeT3rbMB0rRoua" 'True) (C1 ('MetaCons "DaysOfWeek" 'PrefixI 'True) (S1 ('MetaSel ('Just "dayOfWeekSpec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CronField)))

data BaseField Source #

Individual field of a cron expression.

Constructors

Star

Matches anything

SpecificField' SpecificField

Matches a specific value (e.g. 1)

RangeField' RangeField

Matches a range of values (e.g. 1-3)

Instances

Instances details
Data BaseField Source # 
Instance details

Defined in System.Cron.Types

Methods

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

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

toConstr :: BaseField -> Constr #

dataTypeOf :: BaseField -> DataType #

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

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

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

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

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

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

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

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

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

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

Generic BaseField Source # 
Instance details

Defined in System.Cron.Types

Associated Types

type Rep BaseField :: Type -> Type #

Show BaseField Source # 
Instance details

Defined in System.Cron.Types

Eq BaseField Source # 
Instance details

Defined in System.Cron.Types

type Rep BaseField Source # 
Instance details

Defined in System.Cron.Types

type Rep BaseField = D1 ('MetaData "BaseField" "System.Cron.Types" "cron-0.7.1-QNK1BZVJeT3rbMB0rRoua" 'False) (C1 ('MetaCons "Star" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "SpecificField'" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SpecificField)) :+: C1 ('MetaCons "RangeField'" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RangeField))))

data SpecificField Source #

Instances

Instances details
Data SpecificField Source # 
Instance details

Defined in System.Cron.Types

Methods

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

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

toConstr :: SpecificField -> Constr #

dataTypeOf :: SpecificField -> DataType #

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

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

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

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

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

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

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

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

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

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

Generic SpecificField Source # 
Instance details

Defined in System.Cron.Types

Associated Types

type Rep SpecificField :: Type -> Type #

Show SpecificField Source # 
Instance details

Defined in System.Cron.Types

Eq SpecificField Source # 
Instance details

Defined in System.Cron.Types

type Rep SpecificField Source # 
Instance details

Defined in System.Cron.Types

type Rep SpecificField = D1 ('MetaData "SpecificField" "System.Cron.Types" "cron-0.7.1-QNK1BZVJeT3rbMB0rRoua" 'True) (C1 ('MetaCons "SpecificField" 'PrefixI 'True) (S1 ('MetaSel ('Just "specificField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

data RangeField Source #

Instances

Instances details
Data RangeField Source # 
Instance details

Defined in System.Cron.Types

Methods

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

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

toConstr :: RangeField -> Constr #

dataTypeOf :: RangeField -> DataType #

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

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

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

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

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

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

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

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

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

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

Generic RangeField Source # 
Instance details

Defined in System.Cron.Types

Associated Types

type Rep RangeField :: Type -> Type #

Show RangeField Source # 
Instance details

Defined in System.Cron.Types

Eq RangeField Source # 
Instance details

Defined in System.Cron.Types

type Rep RangeField Source # 
Instance details

Defined in System.Cron.Types

type Rep RangeField = D1 ('MetaData "RangeField" "System.Cron.Types" "cron-0.7.1-QNK1BZVJeT3rbMB0rRoua" 'False) (C1 ('MetaCons "RangeField" 'PrefixI 'True) (S1 ('MetaSel ('Just "rfBegin") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "rfEnd") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

data CronField Source #

Constructors

Field BaseField 
ListField (NonEmpty BaseField)

Matches a list of expressions.

StepField' StepField

Matches a stepped expression, e.g. (*/2).

Instances

Instances details
Data CronField Source # 
Instance details

Defined in System.Cron.Types

Methods

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

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

toConstr :: CronField -> Constr #

dataTypeOf :: CronField -> DataType #

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

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

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

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

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

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

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

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

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

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

Generic CronField Source # 
Instance details

Defined in System.Cron.Types

Associated Types

type Rep CronField :: Type -> Type #

Show CronField Source # 
Instance details

Defined in System.Cron.Types

Eq CronField Source # 
Instance details

Defined in System.Cron.Types

type Rep CronField Source # 
Instance details

Defined in System.Cron.Types

data StepField Source #

Instances

Instances details
Data StepField Source # 
Instance details

Defined in System.Cron.Types

Methods

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

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

toConstr :: StepField -> Constr #

dataTypeOf :: StepField -> DataType #

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

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

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

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

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

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

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

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

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

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

Generic StepField Source # 
Instance details

Defined in System.Cron.Types

Associated Types

type Rep StepField :: Type -> Type #

Show StepField Source # 
Instance details

Defined in System.Cron.Types

Eq StepField Source # 
Instance details

Defined in System.Cron.Types

type Rep StepField Source # 
Instance details

Defined in System.Cron.Types

type Rep StepField = D1 ('MetaData "StepField" "System.Cron.Types" "cron-0.7.1-QNK1BZVJeT3rbMB0rRoua" 'False) (C1 ('MetaCons "StepField" 'PrefixI 'True) (S1 ('MetaSel ('Just "sfField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BaseField) :*: S1 ('MetaSel ('Just "sfStepping") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

Commonly Used Schedules

yearly :: CronSchedule Source #

Shorthand for every January 1st at midnight. Parsed with @yearly, 0 0 1 1 *

monthly :: CronSchedule Source #

Shorthand for every 1st of the month at midnight. Parsed with @monthly, 0 0 1 * *

daily :: CronSchedule Source #

Shorthand for every day at midnight. Parsed with @daily, 0 0 * * *

weekly :: CronSchedule Source #

Shorthand for every sunday at midnight. Parsed with @weekly, 0 0 * * 0

hourly :: CronSchedule Source #

Shorthand for every hour on the hour. Parsed with @hourly, 0 * * * *

everyMinute :: CronSchedule Source #

Shorthand for an expression that always matches. Parsed with * * * * *

Rendering

Converting to human-readable string