[Haskell-cafe] Query

vishy anand talbronstien at gmail.com
Sat Feb 10 02:29:35 EST 2007


hi i am going through yaht tutorial and exercise 4.6 and 4.7..i understood
4.6,but not 4.7 in which fromTuple (One a ) = Left (Left a ) and fromTuple
(Two a b ) = Left (Right (a,b) ) function r written..why use Either
type..cant i just say fromTuple (Two a b )=(a,b)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20070210/640a6396/attachment.htm


More information about the Haskell-Cafe mailing list