Re: Prototype of 'docase' notation

2011-08-26 Thread Sebastian Fischer
This is interesting. I think using a slightly different notation would avoid confusion with matching on tuples. Why not just write docase a,b,c of instead of docase (a,b,c) of ? Sebastian On Thu, Aug 25, 2011 at 9:48 PM, Tomas Petricek tomas.petri...@gmail.com wrote: Hello,! at

RE: Prototype of 'docase' notation

2011-08-26 Thread Tomas Petricek
: glasgow-haskell-users@haskell.org Subject: Re: Prototype of 'docase' notation This is interesting. I think using a slightly different notation would avoid confusion with matching on tuples. Why not just write docase a,b,c of instead of docase (a,b,c) of ? Sebastian On Thu, Aug 25

Prototype of 'docase' notation

2011-08-25 Thread Tomas Petricek
Hello,! at the Cambridge Hackathon, I started implementing an extension for GHC that adds the 'docase' notation. The notation is a syntactic sugar that can makes it easier to write code that works with monads that have three additional operations (parallel composition, choice and aliasing). Such