title: Using TemplateHaskell to list all names in a namespace
body: <p>I want a TemplateHaskell function <code>variablesInScope :: Q [Name]</code> that returns a list of the <code>Name</code>'s of all the variables in scope.  TemplateHaskell obviously has this information available in order to implement functions like <code>reify :: Name -&gt; Q Info</code> and <code>lookupValueName :: String -&gt; Q (Maybe Name)</code>.</p>
  
  <p>Does the function I want exist somewhere and I just overlooked it?  Or can it be easily built somehow?</p>