haskell-names-0.8.0: Name resolution library for Haskell

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Names.GetBound

Synopsis

Documentation

class GetBound a l | a -> l where #

Get bound value identifiers.

Minimal complete definition

getBound

Methods

getBound :: Table -> a -> [Name l] #

For record wildcards we need to know which fields the given constructor has. So we pass the global table for that.

Instances

GetBound a l => GetBound [a] l # 

Methods

getBound :: Table -> [a] -> [Name l] #

GetBound a l => GetBound (Maybe a) l # 

Methods

getBound :: Table -> Maybe a -> [Name l] #

Data l => GetBound (Decl l) l # 

Methods

getBound :: Table -> Decl l -> [Name l] #

Data l => GetBound (Binds l) l # 

Methods

getBound :: Table -> Binds l -> [Name l] #

Data l => GetBound (Match l) l # 

Methods

getBound :: Table -> Match l -> [Name l] #

Data l => GetBound (QualConDecl l) l # 

Methods

getBound :: Table -> QualConDecl l -> [Name l] #

Data l => GetBound (ConDecl l) l # 

Methods

getBound :: Table -> ConDecl l -> [Name l] #

Data l => GetBound (FieldDecl l) l # 

Methods

getBound :: Table -> FieldDecl l -> [Name l] #

Data l => GetBound (GadtDecl l) l # 

Methods

getBound :: Table -> GadtDecl l -> [Name l] #

Data l => GetBound (ClassDecl l) l # 

Methods

getBound :: Table -> ClassDecl l -> [Name l] #

Data l => GetBound (Pat l) l # 

Methods

getBound :: Table -> Pat l -> [Name l] #

Data l => GetBound (Stmt l) l # 

Methods

getBound :: Table -> Stmt l -> [Name l] #

Data l => GetBound (QualStmt l) l # 

Methods

getBound :: Table -> QualStmt l -> [Name l] #

(GetBound a l, GetBound b l) => GetBound (a, b) l # 

Methods

getBound :: Table -> (a, b) -> [Name l] #