f = [| pi + $(varE (mkName "pi")) |] ... g = let pi = 3 in $fIn this case, g is desugared to
g = Prelude.pi + 3Note that mkName may be used with qualified names:
mkName "Prelude.pi"See also dyn for a useful combinator. The above example could be rewritten using dyn as
f = [| pi + $(dyn "pi") |]