Generalise type of deleteBy

Matthew Pickering matthewtpickering at gmail.com
Sun Sep 11 10:25:48 UTC 2016


The type of `deleteBy` in `Data.List` could easily be generalised in a
useful way.

```
deleteBy :: (a -> a -> Bool) -> a -> [a] -> [a]
```

to

```
deleteBy :: (a -> b -> Bool) -> a -> [b] -> [b]
```

There is this closed ticket but no reasons for not generalising.

https://ghc.haskell.org/trac/ghc/ticket/3399

Discussion Period: 1 week.

Matt


More information about the Libraries mailing list