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
: 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
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