Skip to content

Add Data.Sequence.toList #1201

@sjshuck

Description

@sjshuck

It's annoying to have to import Data.Foldable just for this. It's the only module from containers with this issue, making the rationale strange:

There is no ``toList`` function in the Sequence module since it can be
`easily implemented <https://wiki.haskell.org/Foldable_and_Traversable>`_ with a
fold using ``Seq``'s `Foldable
<https://wiki.haskell.org/Typeclassopedia#Foldable>`_ instance.

I am preparing a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions