
8 Mar
2010
8 Mar
'10
5:26 a.m.
On Mon, Mar 8, 2010 at 10:21, Magnus Therning
As was suggested by Jonas, it might be worth exploring a tuple of two Either instead.
AFAICS the following would be equivalent to your code: type TestData2 = (Either String Int, Either String Int) test2 (x@(Right _), _) = x test2 (Left _, y) = y /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe