Proposal: Add cons function to Data.List module

Oliver Charles ollie at
Wed Sep 11 08:13:02 UTC 2019

On Wed, Sep 11, 2019 at 7:36 AM Helmut Schmidt
< at> wrote:

> I can't be the only that wants this function, right?

You're not the only one! I would also like this function. In fact,
only yesterday I found myself writing

  ( x : ) <$> recurse xs

I would have preferred

  cons x <$> recurse xs

+1 to adding  cons :: x -> [x] -> [x]  to  Data.List.


More information about the Libraries mailing list