#3399: Generalize the type of Data.List.{deleteBy, deleteFirstsBy}
-----------------------------+----------------------------------------------
Reporter: iago | Owner:
Type: proposal | Status: new
Priority: normal | Component: libraries/base
Version: 6.10.4 | Severity: normal
Keywords: | Testcase:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
-----------------------------+----------------------------------------------
Better (more general) type signatures would be
{{{
deleteBy :: (b -> a -> Bool) -> b -> [a] -> [a]
deleteFirstsBy :: (b -> a -> Bool) -> [b] -> [a] -> [a]
}}}
''Example of why it is useful'':
{{{
deleteBy ((==) . fst) 1 [(1,'a'), (2, 'b')]
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3399>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs