nyan-interpolation-simple-0.9: Simplified lightweight interpolation
Safe HaskellNone
LanguageHaskell2010

Text.Interpolation.Nyan

Description

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