<div dir="ltr">On Fri, Jul 27, 2012 at 5:50 AM, Corentin Dupont <span dir="ltr"><<a href="mailto:corentin.dupont@gmail.com" target="_blank">corentin.dupont@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm looking for a library to be able to express, store and retrieve recurring appointments, like "every Monday at midnight".<br>I saw Data.Time.Recurrence, which has a nice language, but how to store the appointments? A command like:<br>
<i>now <- getCurrentTime<br>recur daily `begin` now</i><br>produces an infinite list of UTCTime.<br></blockquote><div><br></div><div>You need to define your own serialization for its structures. If "recur" can't be serialized directly, your serialization needs to have a way to represent an invocation of "recur" instead of trying to store its result.</div>
<div><br></div><div>This probably isn't provided because different people/applications have different serialization needs, and it's quite easy to roll the serialization yourself given the library as a starting point.</div>
<div><br></div></div>-- <br>brandon s allbery <a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a><br>wandering unix systems administrator (available) (412) 475-9364 vm/sms<br>
<br>
</div>