haddockSource codeContentsIndex
Haddock.GHC
Synopsis
startGhc :: String -> [String] -> (DynFlags -> Ghc a) -> IO a
module Haddock.GHC.Typecheck
unL :: Located a -> a
reL :: a -> Located a
moduleString :: Module -> String
modulePackageString :: Module -> String
modulePackageInfo :: Module -> (String, [Char])
mkModuleNoPackage :: String -> Module
isNameSym :: Name -> Bool
isVarSym :: OccName -> Bool
getMainDeclBinder :: HsDecl name -> Maybe name
isTyClD :: HsDecl a -> Bool
isClassD :: HsDecl a -> Bool
isDocD :: HsDecl a -> Bool
isInstD :: HsDecl a -> Bool
declATs :: HsDecl a -> [a]
pretty :: Outputable a => a -> String
trace_ppr :: Outputable a => a -> b -> b
class Parent a where
children :: a -> [Name]
family :: (NamedThing a, Parent a) => a -> (Name, [Name])
families :: TyClDecl Name -> [(Name, [Name])]
parentMap :: TyClDecl Name -> [(Name, Name)]
parents :: Name -> HsDecl Name -> [Name]
Documentation
startGhc :: String -> [String] -> (DynFlags -> Ghc a) -> IO aSource
Start a GHC session with the -haddock flag set. Also turn off compilation and linking.
module Haddock.GHC.Typecheck
unL :: Located a -> aSource
reL :: a -> Located aSource
moduleString :: Module -> StringSource
modulePackageString :: Module -> StringSource
modulePackageInfo :: Module -> (String, [Char])Source
mkModuleNoPackage :: String -> ModuleSource
isNameSym :: Name -> BoolSource
isVarSym :: OccName -> BoolSource
getMainDeclBinder :: HsDecl name -> Maybe nameSource
isTyClD :: HsDecl a -> BoolSource
isClassD :: HsDecl a -> BoolSource
isDocD :: HsDecl a -> BoolSource
isInstD :: HsDecl a -> BoolSource
declATs :: HsDecl a -> [a]Source
pretty :: Outputable a => a -> StringSource
trace_ppr :: Outputable a => a -> b -> bSource
class Parent a whereSource
Methods
children :: a -> [Name]Source
show/hide Instances
family :: (NamedThing a, Parent a) => a -> (Name, [Name])Source
A parent and its children
families :: TyClDecl Name -> [(Name, [Name])]Source
A mapping from the parent (main-binder) to its children and from each child to its grand-children, recursively.
parentMap :: TyClDecl Name -> [(Name, Name)]Source
A mapping from child to parent
parents :: Name -> HsDecl Name -> [Name]Source
The parents of a subordinate in a declaration
Produced by Haddock version 2.4.2