Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Auxiliary functions for working with values of type String
.
Synopsis
- safeReadFile :: FilePath -> IO (Either String String)
- sanitizeLCIdentifier :: String -> String
- sanitizeUCIdentifier :: String -> String
Safe I/O
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.