Safe Haskell | None |
---|
- names :: Q [Name]
- moduleNames :: String -> Q [Name]
- declarations :: Q [Dec]
- moduleDeclarations :: String -> Q [Dec]
Name Introspection
Get all the top level declarations of the current file. All names are returned whether they are exported or not.
moduleNames :: String -> Q [Name]Source
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.
Declaration Introspection
declarations :: Q [Dec]Source
Get all the type declarations of the current file. Function and pattern declarations are ignored ... for now.
moduleDeclarations :: String -> Q [Dec]Source
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.