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)
___
I have just started on my journey in learning Haskell.I have started off
reading wikibook,then will read yet another tutorial on haskell.Please guide
me if I am on right track
thks
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell