Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Hpp.String
Description
HELPERS for working with String
s
Documentation
stringify :: String -> String Source
Stringification puts double quotes around a string and backslashes before existing double quote characters and backslash characters.
trimSpaces :: String -> String Source
Trim trailing spaces from a String
breakOn :: String -> String -> (String, String) Source
Similar to the function of the same name in the text
package.
breakOn needle haystack
finds the first instance of needle
in
haystack
. The first component of the result is the prefix of
haystack
before needle
is matched. The second is the remainder of
haystack
, starting with the match.