Skip to content

CodePoints uncons? Deprecate drop? #109

Closed
@jamesdbrock

Description

@jamesdbrock

I just noticed that instance stringStringLike uses CodeUnits for uncons.

instance stringLikeString :: StringLike String where
uncons = SCU.uncons
drop = S.drop

Doesn't that mean that anyChar will be wrong for astral characters?

anyChar = do
input <- gets \(ParseState input _ _) -> input
case uncons input of

Also, the drop member of StringLike is now unused?

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