Safe Haskell | None |
---|---|
Language | Haskell2010 |
A lot of quasiquoters to format and interpolate string expression
Synopsis
- f :: QuasiQuoter
- f' :: QuasiQuoter
- fIO :: QuasiQuoter
- fString :: QuasiQuoter
- fBuilder :: QuasiQuoter
- fLazyText :: QuasiQuoter
- fStrictText :: QuasiQuoter
- fWithDelimiters :: (Char, Char) -> QuasiQuoter
- f'WithDelimiters :: (Char, Char) -> QuasiQuoter
- fIOWithDelimiters :: (Char, Char) -> QuasiQuoter
- fStringWithDelimiters :: (Char, Char) -> QuasiQuoter
- fBuilderWithDelimiters :: (Char, Char) -> QuasiQuoter
- fLazyTextWithDelimiters :: (Char, Char) -> QuasiQuoter
- fStrictTextWithDelimiters :: (Char, Char) -> QuasiQuoter
- runFormat :: Format r a -> (Builder -> r) -> a
- format :: Format Text a -> a
- sformat :: Format Text a -> a
- bprint :: Format Builder a -> a
- fprint :: Format (IO ()) a -> a
- hprint :: Handle -> Format (IO ()) a -> a
Documentation
f :: QuasiQuoter Source #
Returns an expression usable with Formatting.format (and similar functions)
f' :: QuasiQuoter Source #
Generic formatter, can format an expression to (lazy) Text, String, Builder and IO () depending on type inference
fIO :: QuasiQuoter Source #
With custom delimiters
fWithDelimiters :: (Char, Char) -> QuasiQuoter Source #
f'WithDelimiters :: (Char, Char) -> QuasiQuoter Source #
fIOWithDelimiters :: (Char, Char) -> QuasiQuoter Source #
Format the format string and directly print it to stdout
fStringWithDelimiters :: (Char, Char) -> QuasiQuoter Source #
Format the format string as a String
fBuilderWithDelimiters :: (Char, Char) -> QuasiQuoter Source #
Format the format string as a Builder
fLazyTextWithDelimiters :: (Char, Char) -> QuasiQuoter Source #
Format the format string as a Lazy Text
fStrictTextWithDelimiters :: (Char, Char) -> QuasiQuoter Source #
Format the format string as a strict Text