Safe Haskell | None |
---|---|
Language | Haskell2010 |
Resolves reexports for psc-ide
- resolveReexports :: ModuleMap [(ModuleName, DeclarationRef)] -> ModuleMap [IdeDeclarationAnn] -> ModuleMap (ReexportResult [IdeDeclarationAnn])
- prettyPrintReexportResult :: (a -> Text) -> ReexportResult a -> Text
- reexportHasFailures :: ReexportResult a -> Bool
- data ReexportResult a = ReexportResult {
- reResolved :: a
- reFailed :: [(ModuleName, DeclarationRef)]
- resolveReexports' :: ModuleMap [IdeDeclarationAnn] -> [(ModuleName, DeclarationRef)] -> ReexportResult [IdeDeclarationAnn]
Documentation
:: ModuleMap [(ModuleName, DeclarationRef)] | the references to resolve |
-> ModuleMap [IdeDeclarationAnn] | Modules to search for the reexported declarations |
-> ModuleMap (ReexportResult [IdeDeclarationAnn]) |
Resolves Reexports for the given Modules, by looking up the reexported values from the passed in DeclarationRefs
prettyPrintReexportResult Source #
:: (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 possible failures
reexportHasFailures :: ReexportResult a -> Bool Source #
Whether any Refs couldn't be resolved
data ReexportResult a Source #
Contains the module with resolved reexports, and possible failures
ReexportResult | |
|
Functor ReexportResult Source # | |
Eq a => Eq (ReexportResult a) Source # | |
Show a => Show (ReexportResult a) Source # | |
Generic (ReexportResult a) Source # | |
NFData a => NFData (ReexportResult a) Source # | |
type Rep (ReexportResult a) Source # | |