<div dir="ltr">On Fri, Jul 27, 2012 at 5:50 AM, Corentin Dupont <span dir="ltr">&lt;<a href="mailto:corentin.dupont@gmail.com" target="_blank">corentin.dupont@gmail.com</a>&gt;</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&#39;m looking for a library to be able to express, store and retrieve recurring appointments, like &quot;every Monday at midnight&quot;.<br>I saw Data.Time.Recurrence, which has a nice language, but how to store the appointments? A command like:<br>

<i>now &lt;- 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 &quot;recur&quot; can&#39;t be serialized directly, your serialization needs to have a way to represent an invocation of &quot;recur&quot; instead of trying to store its result.</div>
<div><br></div><div>This probably isn&#39;t provided because different people/applications have different serialization needs, and it&#39;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>