interpol-0.2.1: GHC preprocessor to enable variable interpolation in strings
Text.Interpol
Description
Support module for the interpol preprocessor.
interpol
Synopsis
(^-^) :: Interpol a => String -> a -> StringSource
Append a showable value to a String in a smart way. In particular, do not show a String, as this encloses it in "quotes". So, depending on the type of the second parameter, ^-^ is equivalent to one of the following
String
show
^-^
x ^-^ y = x ++ y x ^-^ y = x ++ show y