haskell-tools-ast-1.1.1.0: Haskell AST for efficient tooling

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Tools.AST.SemaInfoClasses

Synopsis

Documentation

class HasModuleInfo' si where Source #

class HasDefiningInfo' si where Source #

Infos that store if they were used to define a name

Methods

semanticsDefining :: si -> Bool Source #

class HasScopeInfo' si where Source #

Infos that contain the names that are available in theirs scope

Methods

semanticsScope :: si -> Scope Source #

class HasFixityInfo' si where Source #

Infos that may have a fixity information

class HasNameInfo' si => HasIdInfo' si where Source #

Infos that may have a typed name that can be extracted

Methods

semanticsId :: si -> Id Source #

type HasLiteralInfo dom = (Domain dom, HasLiteralInfo' (SemanticInfo dom ULiteral)) Source #

Domains that have semantic information for literals

class HasNameInfo' si where Source #

Infos that may have a name that can be extracted

Methods

semanticsName :: si -> Maybe Name Source #

type HasNameInfo dom = (Domain dom, HasNameInfo' (SemanticInfo dom UQualifiedName)) Source #

Domains that have semantic information for names

getInstances :: GhcMonad m => [Module] -> m ([ClsInst], [FamInst]) Source #

Gets the class and family instances from a module.

data UsageSpec Source #

Instances
Data UsageSpec Source # 
Instance details

Defined in Language.Haskell.Tools.AST.SemaInfoTypes

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UsageSpec -> c UsageSpec #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UsageSpec #

toConstr :: UsageSpec -> Constr #

dataTypeOf :: UsageSpec -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c UsageSpec) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UsageSpec) #

gmapT :: (forall b. Data b => b -> b) -> UsageSpec -> UsageSpec #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UsageSpec -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UsageSpec -> r #

gmapQ :: (forall d. Data d => d -> u) -> UsageSpec -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UsageSpec -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UsageSpec -> m UsageSpec #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UsageSpec -> m UsageSpec #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UsageSpec -> m UsageSpec #