Proposal: add unzips for Data.Sequence

Ivan Lazar Miljenovic ivan.miljenovic at
Fri Jan 12 03:32:19 UTC 2018

On 12 January 2018 at 13:28, David Feuer <david.feuer at> wrote:
> Paolo G. Giarrusso (Blaisorblade) would like to add an unzip function to
> Data.Sequence. I agree. I propose adding
>   unzip :: Seq (a,b) -> (Seq a, Seq b)
>   unzipWith :: (x -> (a, b)) -> Seq x -> (Seq a, Seq b)
> Does anyone object?

I see no problem with this.  Though I think it's worth pointing out
that Data.List doesn't have unzipWith (though unzipWith f = unzip .
map f).

Ivan Lazar Miljenovic
Ivan.Miljenovic at

More information about the Libraries mailing list