mkName package:ghc-lib-parser

Generate a capturable name. Occurrences of such names will be resolved according to the Haskell scoping rules at the occurrence site. For example:
f = [| pi + $(varE (mkName "pi")) |]
...
g = let pi = 3 in $f
In this case, g is desugared to
g = Prelude.pi + 3
Note 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") |]
Creates some functions that work out the best ways to format names for the user according to a set of heuristics.
Used for 'x etc, but not available to the programmer
Only used internally
Only used internally
Only used internally