purescript-0.13.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 # 
Instance details

Defined in Language.PureScript.Ide.Reexports

Methods

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

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

Eq a => Eq (ReexportResult a) Source # 
Instance details

Defined in Language.PureScript.Ide.Reexports

Show a => Show (ReexportResult a) Source # 
Instance details

Defined in Language.PureScript.Ide.Reexports

Generic (ReexportResult a) Source # 
Instance details

Defined in Language.PureScript.Ide.Reexports

Associated Types

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

NFData a => NFData (ReexportResult a) Source # 
Instance details

Defined in Language.PureScript.Ide.Reexports

Methods

rnf :: ReexportResult a -> () #

type Rep (ReexportResult a) Source # 
Instance details

Defined in Language.PureScript.Ide.Reexports

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