Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- checkMajorVersion :: (Int -> t) -> String -> t
- cleanDoubleQuotes :: String -> String
- deEscapeSingleQuotes :: String -> String
- dot :: FilePath
- escapeSingleQuotes :: String -> String
- nolines :: String -> String
- replace :: Eq a => [a] -> [a] -> [a] -> [a]
- strip :: String -> String
- stripUsing :: (a -> Bool) -> [a] -> [a]
- toDoubleQuotedStr :: String -> String
- toSingleQuotedStr :: String -> String
- wrap :: Int -> String -> [String]
- wrapUsing :: (a -> Bool) -> Int -> [a] -> [[a]]
Documentation
checkMajorVersion :: (Int -> t) -> String -> t Source #
Given a comparison and a string return true or false:
*Utils> checkMajorVersion (18>=) "18.1.0" True *Utils> checkMajorVersion (18>=) "19.3" False *Utils> checkMajorVersion (>=19) "19.3" True *Utils> checkMajorVersion (>=19) "18.1.0" False
cleanDoubleQuotes :: String -> String Source #
Replace escaped double quotes (") by single quotes (') and remove double qoutes (").
deEscapeSingleQuotes :: String -> String Source #
De-Escape single quotes.
escapeSingleQuotes :: String -> String Source #
Escape single quotes.
stripUsing :: (a -> Bool) -> [a] -> [a] Source #
stripUsing
predicate p
leading and trailing p x
true.
toDoubleQuotedStr :: String -> String Source #
Make a double quoted string from a single quoted string, a SciDB string.
toSingleQuotedStr :: String -> String Source #
Make a single quoted string which is a SciDB string.