<div dir="auto"><div><div class="gmail_extra"><div class="gmail_quote">On 17 Feb 2017 13:00, "Ivan Lazar Miljenovic" <<a href="mailto:ivan.miljenovic@gmail.com">ivan.miljenovic@gmail.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 17 February 2017 at 22:34, David Turner<br>
<div class="elided-text"><<a href="mailto:dct25-561bs@mythic-beasts.com">dct25-561bs@mythic-beasts.com</a><wbr>> wrote:<br>
> Hi all,<br>
><br>
> Does anyone know of a more up-to-date parser for RFC822-formatted dates than<br>
> the one I can find in the `time-http` package? That package hasn't been<br>
> touched in a while and its dependencies seem rather dated.<br>
<br>
</div>Data.Time.Format in the time package has a specified RFC822 format<br>
string that looks like it can be used with it's parser.<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">So it does. Right down at the very bottom, I never noticed it before. It's not fully compliant (the day-of-the-week is optional) but otherwise great.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Happstack seems to have an RFC822Headers module that might have something.<br>
<br>
timerep on Hackage also has an RFC822 module.<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">That's the badger! No idea how I missed it, that looks like the one to use.</div><div dir="auto"><br></div><div dir="auto">Thanks very much,</div><div dir="auto"><br></div><div dir="auto">David</div></div>