Should this library expose a function which allows constant-time codepoint indexing in string?
This would only work in situations where you have the codeunit index of the codepoint handy, so the signature would look like
codePointAtIndexUnit :: Int -> String -> Maybe (Tuple CodePoint Int)
See also purescript-contrib/purescript-string-parsers#77