Wrote a shitty (as in, completely incomplete) parser for the iCalendar format: this Friday on our lunch-and-learn I want to motivate a bit of Haskell, and megaparsec makes writing stupid stuff very, very easy (session goal: ical -> sqlite so you can analyse your calendar data)
How easy/hard was it? I've occasionally wanted to read those files (or just an interesting fragment of them), but never even got as far as searching for the spec. Is there even a spec?
-
-
There’s a RFC spec, and it’s pretty much hell if you want compliance. I mostly ignored it, and just extract the start, end and summary of events ignoring timezones and daylight savings. In full, it combines UTF, timezones, durations and instants: how much horrible could be?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
There are libraries to parse it in most languages (including Haskell) but it’s a decent motivational example for megaparsec (or parser combinators). Markdown would also be relatively ok for this, too
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.