
27 Dec
2011
27 Dec
'11
9:05 p.m.
On Tue, Dec 27, 2011 at 3:54 AM, Tim Baumgartner < baumgartner.tim@googlemail.com> wrote:
Hi Haskellers!
I'm writing my first non-trivial Haskell application. I have an
electronic drum set that generates MIDI events that I process with Haskell. A simple application of this kind might have fixed drums associated with fixed commands (I've done that). [...]
Currently I'm using a monad that combines Parsec (with MIDI event stream)
and a Writer (that writes commands that should result in IO). It's done in a way that during running the monad, many parses can be done and failing parses roll back the parser state so that a new parse can be tried.
Care to share your code? amindfv / Tom