Module

Data.String.Unsafe

Package
strings
Repository
purerl/purescript-strings

Unsafe string and character functions.

#char Source

char :: String -> Char

Converts a string of length 1 to a character.

Unsafe: throws runtime exception if length is not 1.

#charAt Source

charAt :: Int -> String -> Char

Returns the character at the given index.

Unsafe: throws runtime exception if the index is out of bounds.