On Wednesday 03 December 2008 15:13, jim wrote: > Continuing with the monad theme, I decided to implement monadic > parsing in Clojure. Erik Meijer and Graham Hutton published a paper > called "Monadic Parsing in Haskell" and I implemented the examples > from that paper in Clojure. The code is available here:
Thanks. I'm finding this an interesting aid as I learn about monads specifically and functional programming in general. > http://groups.google.com/group/clojure/web/monad-parser.clj > > And you also need the monad code from here: > > http://clojure.googlegroups.com/web/monad-redux.clj I notice these files use the (comment ...) macro to enclose what is essentially arbitrary English text. Is this a good idea? It seems vulnerable to a change that would render the enclose content not syntactically valid. > The code is uncommented and should be read in parallel with the > original paper from here (pdf): > > http://www.cs.nott.ac.uk/~gmh/pearl.pdf I also retrieved the 1990 ACM paper "Comprehending Monads" by Philip Wadler. I forget which ACM publication it appeared it, but it can easily be found via Google Scholar or other search service. > Comments welcome. > > Next up: monad transformers I look forward to it. > Jim Randall Schulz --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---