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]
Versions [faq] 0.1.0.0
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.9) [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 2020-03-03T05:44:50Z
Distributions NixOS:0.1.0.0
Downloads 120 total (18 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2020-03-03 [all 1 reports]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for rrule-0.1.0.0

[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"