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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s