Safe Haskell | None |
---|---|
Language | Haskell2010 |
Functions for converting PureScript ASTs into values of the data types from Language.PureScript.Docs.
- convertModules :: MonadError MultipleErrors m => (ModuleName -> InPackage ModuleName) -> [Module] -> m [Module]
- convertModulesWithEnv :: MonadError MultipleErrors m => (ModuleName -> InPackage ModuleName) -> [Module] -> m ([Module], Env)
- convertTaggedModulesInPackage :: MonadError MultipleErrors m => [(FilePath, Module)] -> Map ModuleName PackageName -> m [(FilePath, Module)]
- convertModulesInPackage :: MonadError MultipleErrors m => [Module] -> Map ModuleName PackageName -> m [Module]
- convertModulesInPackageWithEnv :: MonadError MultipleErrors m => [Module] -> Map ModuleName PackageName -> m ([Module], Env)
Documentation
convertModules :: MonadError MultipleErrors m => (ModuleName -> InPackage ModuleName) -> [Module] -> m [Module] Source #
Convert a group of modules to the intermediate format, designed for producing documentation from.
Note that the whole module dependency graph must be included in the list; if some modules import things from other modules, then those modules must also be included.
For value declarations, if explicit type signatures are omitted, or a wildcard type is used, then we typecheck the modules and use the inferred types.
convertModulesWithEnv :: MonadError MultipleErrors m => (ModuleName -> InPackage ModuleName) -> [Module] -> m ([Module], Env) Source #
convertTaggedModulesInPackage :: MonadError MultipleErrors m => [(FilePath, Module)] -> Map ModuleName PackageName -> m [(FilePath, Module)] Source #
Like convertModuleInPackage, but with the modules tagged by their file paths.
convertModulesInPackage :: MonadError MultipleErrors m => [Module] -> Map ModuleName PackageName -> m [Module] Source #
Like convertModules, except that it takes a list of modules, together with their dependency status, and discards dependency modules in the resulting documentation.
convertModulesInPackageWithEnv :: MonadError MultipleErrors m => [Module] -> Map ModuleName PackageName -> m ([Module], Env) Source #