purescript-0.12.0: PureScript Programming Language Compiler

Safe HaskellNone
LanguageHaskell2010

Language.PureScript.Ide.Reexports

Description

Resolves reexports for psc-ide

Synopsis

Documentation

resolveReexports Source #

Arguments

:: 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 #

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 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

Constructors

ReexportResult 

Instances

Functor ReexportResult Source # 

Methods

fmap :: (a -> b) -> ReexportResult a -> ReexportResult b #

(<$) :: a -> ReexportResult b -> ReexportResult a #

Eq a => Eq (ReexportResult a) Source # 
Show a => Show (ReexportResult a) Source # 
Generic (ReexportResult a) Source # 

Associated Types

type Rep (ReexportResult a) :: * -> * #

NFData a => NFData (ReexportResult a) Source # 

Methods

rnf :: ReexportResult a -> () #

type Rep (ReexportResult a) Source # 
type Rep (ReexportResult a) = D1 * (MetaData "ReexportResult" "Language.PureScript.Ide.Reexports" "purescript-0.12.0-GnFPE64AyqYHZk4VD04uBy" False) (C1 * (MetaCons "ReexportResult" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "reResolved") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * a)) (S1 * (MetaSel (Just Symbol "reFailed") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [(ModuleName, DeclarationRef)]))))