[Haskell-cafe] Banana bracket syntax used for arrows was Re: unary pattern matching

Shae Matijs Erisson shae at ScannedInAvian.com
Fri Jan 27 02:38:22 EST 2006


John Meacham <john at repetae.net> writes:

> hmm.. how about
> 
> (| Left (Just _) |)
> 
> since | cannot be used as a section so it can be unambigously lexed as a
> different symbol. I think I like it. any other ideas?

Not sure if it matters, but the 'banana bracket' syntax is already used by the
arrows extension:

http://darcs.haskell.org/darcsweb/darcsweb.cgi?r=testsuite;a=headblob;f=/tests/ghc-regress/arrows/should_run/arrowrun004.hs

http://cvs.haskell.org/cgi-bin/cvsweb.cgi/fptools/testsuite/tests/ghc-regress/arrows/Attic/arrowex4.hs
-- 
Shae Matijs Erisson - http://www.ScannedInAvian.com/ - Sockmonster once said:
You could switch out the unicycles for badgers, and the game would be the same.



More information about the Haskell-Cafe mailing list