Skip to content

scanl / scanr do not replace invalid Char when passed as an initial value of accumulator #668

@Bodigrim

Description

@Bodigrim
ghci> Data.Text.singleton '\55296'
"\65533"
ghci> Data.Text.scanl Prelude.undefined '\55296' mempty
"\55296"

Which means that one can end up with a malformed Text.

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