| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Text.Regex.TDFA.QuasiQuoter
Description
See the documentation of re.
- re :: QuasiQuoter
- unescape :: String -> String
Documentation
re :: QuasiQuoter Source
Quasi-quoter for Text.Regex.TDFA (extended POSIX) regular expressions. Refer to that module's documentation for more information on supported features.
See the documentation of unescape for escape sequences this
quasi-quoter supports.
[re|regexp] is the parsed Pattern (AST)
of regexp. A parse failure is a compile-time error.
unescape :: String -> String Source
Replaces escape sequences with their respective characters. Any sequence not listed will be left as-is.
Sequence | Character ----------+-------------------- \\ | \ \n | Newline \r | Carriage return \t | Horizontal tab \f | Form feed \v | Vertical tab \xFFFF | Code point (in hex) |~] | |] \|~] | |~]
Note that if you are reading the source file and not the generated Haddock documentation that the backslashes have been doubled up.