{-# OPTIONS_GHC -fplugin=Interpolate #-} module Main where import Data.String.Interpolate a :: Int a = 42 s :: String s = "#{a} * #{a} = #{a * a}" main :: IO () main = putStrLn s -- 42 * 42 = 1764