typist-0.1.0.0: Typelevel printf
Safe HaskellSafe-Inferred
LanguageHaskell2010

Typist.TextShow

Synopsis

Documentation

data Name (s :: Symbol) Source #

Constructors

Name 

Instances

Instances details
IsLabel s (Name s) Source # 
Instance details

Defined in Typist.TextShow

Methods

fromLabel :: Name s #

(#=) :: 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?"

newtype Unquoted a Source #

Use to render string as is without quotation

ghci> "> " <> showt "hello" <> " <"
"> \"hello\" <"
ghci> "> " <> showt (Unquoted "hello") <> " <"
"> hello <"

Constructors

Unquoted a 

Instances

Instances details
TextShow (Unquoted Text) Source # 
Instance details

Defined in Typist.TextShow

TextShow (Unquoted Builder) Source # 
Instance details

Defined in Typist.TextShow

TextShow (Unquoted Text) Source # 
Instance details

Defined in Typist.TextShow

TextShow (Unquoted String) Source # 
Instance details

Defined in Typist.TextShow