haskell-names-0.2: Name resolution library for Haskell

Safe HaskellNone

Language.Haskell.Names.SyntaxUtils

Synopsis

Documentation

dropAnn :: Functor a => a l -> a ()Source

setAnn :: Functor a => l' -> a l -> a l'Source

class GetBound a l | a -> l whereSource

Methods

getBound :: a -> [Name l]Source

Instances

GetBound a l => GetBound [a] l 
GetBound a l => GetBound (Maybe a) l 
Data l => GetBound (Decl l) l 
Data l => GetBound (Binds l) l 
Data l => GetBound (Match l) l 
Data l => GetBound (QualConDecl l) l 
Data l => GetBound (ConDecl l) l 
Data l => GetBound (FieldDecl l) l 
Data l => GetBound (GadtDecl l) l 
Data l => GetBound (ClassDecl l) l 
Data l => GetBound (Pat l) l 
Data l => GetBound (Stmt l) l 
Data l => GetBound (QualStmt l) l 
(GetBound a l, GetBound b l) => GetBound (a, b) l 

opName :: Op l -> Name lSource

getErrors :: (Ord l, Foldable a) => a (Scoped l) -> Set (Error l)Source

moduleExtensionsSource

Arguments

:: Language

base language

-> [Extension]

global extensions

-> Module l 
-> ExtensionSet 

Compute the extension set for the given module, based on the global preferences (e.g. specified on the command line) and module's LANGUAGE pragmas.