Proposal: unsnoc, unsafeInit and unsafeLast for the bytestring library

Michael Snoyman michael at
Mon Apr 2 11:47:30 CEST 2012

On Mon, Apr 2, 2012 at 12:42 PM, Mikhail Vorozhtsov
<mikhail.vorozhtsov at> wrote:
> Hi.
> I propose to add the missing counterparts of `uncons` and `unsafeHead/Tail`
> functions to the bytestring library.
> Discussion deadline: 2 weeks
> The patch is attached.
> _______________________________________________
> Libraries mailing list
> Libraries at

+1 on unsnoc in particular, I know I've been surprised a few times
that it's not there. I haven't specifically missed the other two, but
I agree that they should be added.


More information about the Libraries mailing list