| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Language.PureScript.Ide.Reexports
Description
Resolves reexports for psc-ide
- resolveReexports :: Map ModuleName [IdeDeclarationAnn] -> (Module, [(ModuleName, DeclarationRef)]) -> ReexportResult Module
- prettyPrintReexportResult :: (a -> Text) -> ReexportResult a -> Text
- reexportHasFailures :: ReexportResult a -> Bool
- data ReexportResult a = ReexportResult {
- reResolved :: a
- reFailed :: [(ModuleName, DeclarationRef)]
Documentation
Arguments
| :: Map ModuleName [IdeDeclarationAnn] | Modules to search for the reexported declarations |
| -> (Module, [(ModuleName, DeclarationRef)]) | The module to resolve reexports for, aswell as the references to resolve |
| -> ReexportResult Module |
Resolves Reexports for a given Module, by looking up the reexported values from the passed in Map
prettyPrintReexportResult Source #
Arguments
| :: (a -> Text) | Formatter for the resolved result |
| -> ReexportResult a | The Result to be pretty printed |
| -> Text |
Uses the passed formatter to format the resolved module, and adds eventual failures
reexportHasFailures :: ReexportResult a -> Bool Source #
Whether any Refs couldn't be resolved
data ReexportResult a Source #
Contains the module with resolved reexports, and eventual failures
Constructors
| ReexportResult | |
Fields
| |
Instances
| Functor ReexportResult Source # | |
| Eq a => Eq (ReexportResult a) Source # | |
| Show a => Show (ReexportResult a) Source # | |