| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Text.InterpolatedString.QM
Synopsis
- qm :: QuasiQuoter
- qn :: QuasiQuoter
- qmb :: QuasiQuoter
- qnb :: QuasiQuoter
- qms :: QuasiQuoter
- qns :: QuasiQuoter
- class ShowQ a where
Documentation
qm :: QuasiQuoter Source #
QuasiQuoter for multiline interpolated string.
[qm| foo {b:a:r:""} \ baz |] -- "foo bar baz"
Symbols that could be escaped:
\- backslash itself (two backslashes one by one:\\)[qm| foo\\bar |] -- "foo\\bar"- Space symbol at the edge
(to put it to the output instead of just ignoring it)
[orqm| foo\ |] -- "foo "[qm|\ foo |] -- " foo" - Line break
\n(actual line breaks are ignored) - Opening bracket of interpolation block
\{to prevent interpolation and put it as it is[qm| {1+2} \{3+4} |] -- "3 {3+4}"
qn :: QuasiQuoter Source #
qmb :: QuasiQuoter Source #
qnb :: QuasiQuoter Source #
qms :: QuasiQuoter Source #
qns :: QuasiQuoter Source #
Instances
| ShowQ ByteString Source # | |
Defined in Text.InterpolatedString.QM.ShowQ.Class Methods showQ :: ByteString -> String Source # | |
| ShowQ ByteString Source # | |
Defined in Text.InterpolatedString.QM.ShowQ.Class Methods showQ :: ByteString -> String Source # | |
| ShowQ Text Source # | |
| ShowQ Text Source # | |
| ShowQ String Source # | |
| ShowQ Char Source # | |
| Show a => ShowQ a Source # | |
Defined in Text.InterpolatedString.QM.ShowQ.Class | |