rrule: Recurrence rule parser and formatter

[ bsd3, library, time ] [ Propose Tags ]

Parser for recurrence rules including formatting back to RFC 5545 recurrence rule strings as well as providing English descriptions


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.1.1, 0.1.2
Change log changelog.md
Dependencies base (>=4.7 && <5), megaparsec (>=8.0.0 && <8.1), parser-combinators (>=1.2.1 && <1.3), text (>=1.2.3 && <1.3), time (>=1.8.0 && <1.12) [details]
License BSD-3-Clause
Copyright 2020 Mitchell Vitez
Author Mitchell Vitez
Maintainer mitchell@vitez.me
Category Time
Home page https://github.com/mitchellvitez/rrule#readme
Bug tracker https://github.com/mitchellvitez/rrule/issues
Source repo head: git clone https://github.com/mitchellvitez/rrule
Uploaded by MitchellVitez at 2021-11-20T05:22:29Z
Distributions
Downloads 594 total (8 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2021-11-20 [all 1 reports]

Readme for rrule-0.1.2

[back to package description]

rrule

Recurrence rule parser and formatter

fromText parses from a recurrence rule Text to the RRule type

> let rule = fromJust $ fromText "RRULE:FREQ=MONTHLY;INTERVAL=1;BYMONTHDAY=1"
> rule
RRule {prefix = True, frequency = Just Monthly, byMonthDay = Just (1 :| []), ... }

toText formats an RRule to a recurrence rule Text

> toText rule
"RRULE:FREQ=MONTHLY;INTERVAL=1;BYMONTHDAY=1"

description gives a description of what an RRule means, in English

> description rule
"every month on the 1st day of the month"