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.
breakOn :: [(String, t)] -> String -> Maybe (t, String, String) Source #
Similar to the function of the same name in the text
package.
breakOn needles haystack
finds the first instance of an element
of needles
in haystack
. The first component of the result is
the needle tag, the second component is the prefix of haystack
before the matched needle, the third component is the remainder of
the haystack
after the needle..