-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Template Haskell for introspecting a module's declarations -- @package modulespection @version 0.1.2.2 module Language.Haskell.TH.Module.Magic -- | Get all the top level declarations of the current file. All names are -- returned whether they are exported or not. names :: Q [Name] -- | Get all the top level names of a given module. If a file path is used, -- all names, exported and internal are returned. If a module name is -- used, only the exported names are returned. moduleNames :: String -> Q [Name] -- | Get all the type declarations of the current file. Function and -- pattern declarations are ignored ... for now. declarations :: Q [Dec] -- | Get all the top level names of a given module. If a file path is used, -- all names, exported and internal are returned. If a module name is -- used, only the exported names are returned. Function and pattern -- declarations are ignored ... for now. moduleDeclarations :: String -> Q [Dec] instance GetNameMaybe RdrName instance GetNameMaybe a => GetNameMaybe (GenLocated SrcSpan a) instance GetNameMaybe (HsBindLR RdrName RdrName) instance GetNameMaybe (TyClDecl RdrName) instance GetNameMaybe (HsDecl RdrName) instance MonadMask Ghc instance MonadCatch Ghc instance MonadThrow Ghc