[GHC] #1979: Add variants of tails and inits not returning empty lists

GHC trac at galois.com
Fri Dec 14 11:08:45 EST 2007


#1979: Add variants of tails and inits not returning empty lists
-------------------------------+--------------------------------------------
    Reporter:  mux             |       Owner:         
        Type:  proposal        |      Status:  new    
    Priority:  normal          |   Milestone:  6.8.3  
   Component:  libraries/base  |     Version:  6.8.1  
    Severity:  normal          |    Keywords:         
  Difficulty:  Unknown         |    Testcase:         
Architecture:  Unknown         |          Os:  Unknown
-------------------------------+--------------------------------------------
 This patch adds the tails1 and inits1 function, that behave like their
 counterpart except that they won't return an empty list.  I've needed them
 several times already, so it seems to me they would be useful to have in
 base.

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


More information about the Glasgow-haskell-bugs mailing list