Skip to content

Remove cycle and repeat from Data.List.Linear #453

@alt-romes

Description

@alt-romes

Describe the bug

The function cycle from Data.List.Linear never terminates

To Reproduce

Load up ghci with

take 5 (Data.List.Linear.cycle ['a','b'])

Expected behavior

It should return "ababa" and terminate. Currently it returns "ababa" but never terminates 🙂.

Environment

GHC 9.4.4 and 9.6.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions