[GHC] #974: Add isLeft, isRight, fromLeft, fromRight, and splitEithers to Data.Either

2006-10-30 Thread GHC
#974: Add isLeft, isRight, fromLeft, fromRight, and splitEithers to Data.Either
---+
Reporter:  guest   |   Owner: 
Type:  proposal|  Status:  new
Priority:  normal  |   Milestone: 
   Component:  libraries/base  | Version:  6.6
Severity:  normal  |Keywords: 
  Difficulty:  Unknown |Testcase: 
Architecture:  Unknown |  Os:  Unknown
---+
This proposal would add basic functionality to `Either` similar to that
 for `Maybe`.  The `splitEithers` function of type `[Either a b] -
 ([a],[b])` is unique; however, it seems to be a widely useful function.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/974
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #974: Add isLeft, isRight, fromLeft, fromRight, and splitEithers to Data.Either

2006-10-30 Thread Neil Mitchell

Hi


#974: Add isLeft, isRight, fromLeft, fromRight, and splitEithers to Data.Either


Woohoo! Finally!


This proposal would add basic functionality to `Either` similar to that
 for `Maybe`.  The `splitEithers` function of type `[Either a b] -
 ([a],[b])` is unique; however, it seems to be a widely useful function.


This (in my mind) is a parallel to unzip? unzipEithers to me gives a
much clearer picture of what is going on here.

Thanks

Neil
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs