rrule: Recurrence rule parser and formatter

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

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


[Skip to Readme]

Properties

Versions 0.1.0.0, 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 2020-11-28T00:45:23Z

Modules

[Index]

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"