Safe Haskell | None |
---|---|
Language | Haskell2010 |
- dropAnn :: Functor a => a l -> a ()
- setAnn :: Functor a => l' -> a l -> a l'
- annName :: Name -> Name ()
- getModuleName :: Module l -> ModuleName l
- getImports :: Module l -> [ImportDecl l]
- getExportSpecList :: Module l -> Maybe (ExportSpecList l)
- getDeclHead :: Decl l -> Maybe (DeclHead l)
- getDeclHeadName :: DeclHead 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
- nameToQName :: Name l -> QName 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
- getModuleExtensions :: Module l -> (Maybe Language, [Extension])
Documentation
getModuleName :: Module l -> ModuleName l Source
getImports :: Module l -> [ImportDecl l] Source
getExportSpecList :: Module l -> Maybe (ExportSpecList l) Source
getDeclHead :: Decl l -> Maybe (DeclHead l) Source
getDeclHeadName :: DeclHead l -> Name l Source
getModuleDecls :: Module l -> [Decl l] Source
isTypeDecl :: Decl l -> Bool Source
nameToString :: Name l -> String Source
stringToName :: String -> Name () Source
specialConToString :: SpecialCon l -> String Source
qNameToName :: QName l -> Name l Source
nameToQName :: Name l -> QName l Source
type ExtensionSet = Set KnownExtension Source
:: 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.