note to self: semi-unstructured text parsing with Parsec (and an alternative)

Managed to answer someone’s question on haskell-cafe about parsing semi-structured text with Parsec:

https://gist.github.com/carlohamalainen/5087207.js

S. Doaitse Swierstra pointed out that the Data.List.Grouping package may be more appropriate here.

Leave a Reply