-
Notifications
You must be signed in to change notification settings - Fork 52
Closed
Description
I just noticed that instance stringStringLike uses CodeUnits for uncons.
purescript-parsing/src/Text/Parsing/Parser/String.purs
Lines 27 to 29 in 3d7976e
| instance stringLikeString :: StringLike String where | |
| uncons = SCU.uncons | |
| drop = S.drop |
Doesn't that mean that anyChar will be wrong for astral characters?
purescript-parsing/src/Text/Parsing/Parser/String.purs
Lines 54 to 56 in 3d7976e
| anyChar = do | |
| input <- gets \(ParseState input _ _) -> input | |
| case uncons input of |
Also, the drop member of StringLike is now unused?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels