| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Typist.TextShow
Documentation
(#=) :: TextShow a => Name s -> a -> Rec as -> Rec (Arg n s ': as) Source #
Set parameter for template
ghci> :{
fmt @"Hello, #{name}, do you like #{thing}?" $
(#name @= Unquoted "Kitty") . (#thing @= Unquoted "cheese")
:}
"Hello, Kitty, do you like cheese?"
Use to render string as is without quotation
ghci> "> " <> showt "hello" <> " <" "> \"hello\" <" ghci> "> " <> showt (Unquoted "hello") <> " <" "> hello <"
Constructors
| Unquoted a |