purescript-0.12.0: PureScript Programming Language Compiler

Safe HaskellNone
LanguageHaskell2010

Language.PureScript.Docs.Convert

Description

Functions for converting PureScript ASTs into values of the data types from Language.PureScript.Docs.

Synopsis

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.

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.