Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Flexible interpolation quoter.
This works exactly like the quoter in `nyan-interpolation` library, with the only exception that arbitrary expressions cannot be used in placeholder position, only variables.
>>>
let val1 = 1 :: Int
>>>
val2 = 2
>>>
in [int||Values are #{val1} and #d{val2}]
"Value is 5"
Documentation
int :: QuasiQuoter Source #