[GHC] #1189: Add First and Last wrappers around Maybe to Data.Monoid

GHC trac at galois.com
Sun Mar 4 03:59:10 EST 2007


#1189: Add First and Last wrappers around Maybe to Data.Monoid
-------------------------------+--------------------------------------------
    Reporter:  jyasskin        |       Owner:         
        Type:  proposal        |      Status:  new    
    Priority:  normal          |   Milestone:  Not GHC
   Component:  libraries/base  |     Version:  6.6    
    Severity:  normal          |    Keywords:         
  Difficulty:  Unknown         |    Testcase:         
Architecture:  Unknown         |          Os:  Unknown
-------------------------------+--------------------------------------------
First and Last `mappend` to the first and last non-Nothing elements of the
 input. These instances seem to fit with the other simple instances in this
 file and are useful, for example, to turn foldMap into findFirst or
 findLast, or to get a really trivial Writer monad.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1189>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list