hpp-0.1.0.0: A Haskell pre-processor

Safe HaskellSafe
LanguageHaskell2010

Hpp.String

Description

Helpers for working with Strings

Synopsis

Documentation

stringify :: String -> String Source

Stringification puts double quotes around a string and backslashes before existing double quote characters and backslash characters.

unquote :: String -> String Source

Remove double quote characters from the ends of a string.

trimSpaces :: String -> String Source

Trim trailing spaces from a String

trimEnd :: (a -> Bool) -> [a] -> [a] Source

Remove a suffix of a list all of whose elements satisfy the given predicate.