time-patterns

Patterns for recurring events

https://github.com/j-mueller/time-patterns

Latest on Hackage:0.1.4.3

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD-3-Clause licensed by Jann Müller, Moritz Kiefer
Maintained by [email protected]

This package contains a set of primitives and combinators for event patterns. Example:

>> import qualified Prelude as P
>> let sundays = every 2 sunday
>> let today = fromGregorian 2013 12 01
>> P.take 2 $ instancesFrom today sundays
[2013-12-08, 2013-12-22]

See Data.Time.Patterns for more examples.