Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Data.String.Extra
Description
Auxiliary functions for working with values of type String
.
Synopsis
- safeReadFile :: FilePath -> IO (Either String String)
- pascalCase :: String -> String
- sanitizeLCIdentifier :: String -> String
- sanitizeUCIdentifier :: String -> String
Safe I/O
String transformation
pascalCase :: String -> String Source #
Convert a string with underscores to PascalCase.
String sanitization
sanitizeLCIdentifier :: String -> String Source #
Remove extraneous characters from an identifier and make the starting character lowercase.
This function currently replaces hyphens with underscores.
sanitizeUCIdentifier :: String -> String Source #
Remove extraneous characters from an identifier and make the starting character uppercase.
This function currently replaces hyphens with underscores.