Safe Haskell | None |
---|
- dropAnn :: Functor a => a l -> a ()
- setAnn :: Functor a => l' -> a l -> a l'
- getModuleName :: Module l -> ModuleName l
- getImports :: Module l -> [ImportDecl l]
- getExportSpecList :: Module l -> Maybe (ExportSpecList l)
- splitDeclHead :: DeclHead l -> (Name l, [TyVarBind l])
- getDeclHead :: Decl l -> Maybe (DeclHead l)
- getDeclHeadName :: Decl l -> Name l
- getModuleDecls :: Module l -> [Decl l]
- isTypeDecl :: Decl l -> Bool
- opName :: Op l -> Name l
- isCon :: Name l -> Bool
- nameToString :: Name l -> String
- stringToName :: String -> Name ()
- specialConToString :: SpecialCon l -> String
- qNameToName :: QName l -> Name l
- unCName :: CName l -> Name l
- getErrors :: (Ord l, Foldable a) => a (Scoped l) -> Set (Error l)
- type ExtensionSet = Set KnownExtension
- moduleExtensions :: Language -> [Extension] -> Module l -> ExtensionSet
Documentation
getModuleName :: Module l -> ModuleName lSource
getImports :: Module l -> [ImportDecl l]Source
getExportSpecList :: Module l -> Maybe (ExportSpecList l)Source
splitDeclHead :: DeclHead l -> (Name l, [TyVarBind l])Source
getDeclHead :: Decl l -> Maybe (DeclHead l)Source
getDeclHeadName :: Decl l -> Name lSource
getModuleDecls :: Module l -> [Decl l]Source
isTypeDecl :: Decl l -> BoolSource
nameToString :: Name l -> StringSource
stringToName :: String -> Name ()Source
specialConToString :: SpecialCon l -> StringSource
qNameToName :: QName l -> Name lSource
type ExtensionSet = Set KnownExtensionSource
:: 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.