Moduleghc-9.10.3GHC2021
GHC.Hs
- 5 types
- Packageghc-9.10.3
- Exports5
- LanguageGHC2021
- LicenceBSD-3-Clause
- SourceSyntax.hs
module Language.Haskell.Syntax
module GHC.Hs.Binds
module GHC.Hs.Decls
module GHC.Hs.Expr
module GHC.Hs.ImpExp
module GHC.Hs.Lit
module GHC.Hs.Pat
module GHC.Hs.Type
module GHC.Hs.Utils
module GHC.Hs.Doc
module GHC.Hs.Extension
module GHC.Parser.Annotation
Haskell Module
All we actually declare here is the top-level structure for a module.
Constructors
HsModulehsmodExt :: XCModule pHsModule extension point
hsmodName :: Maybe (XRec p ModuleName)Nothing: "module X where" is omitted (in which case the next field is Nothing too)hsmodExports :: Maybe (XRec p [LIE p])Export list
Nothing: export list omitted, so export everythingJust []: export nothingJust [...]: as you would expect...
hsmodImports :: [LImportDecl p]hsmodDecls :: [LHsDecl p]Type, class, value, and interface signature decls
XModule !(XXModule p)
Constructors
AnnsModuleam_main :: [AddEpAnn]am_decls :: [TrailingAnn]Semis before the start of top decls
am_cs :: [LEpaComment]Comments before start of top decl, used in exact printing only
am_eof :: Maybe (RealSrcSpan, RealSrcSpan)End of file and end of prior token
Instances3Eq, Data, NoAnn
Eq AnnsModuleDefined in ghc-9.10.3 · GHC.HsData AnnsModuleDefined in ghc-9.10.3 · GHC.HsNoAnn AnnsModuleDefined in ghc-9.10.3 · GHC.Hs
Constructors
Haskell Module extension point: GHC specific
Constructors
XModulePshsmodAnn :: EpAnn AnnsModulehsmodLayout :: EpLayoutLayout info for the module. For incomplete modules (e.g. the output of parseHeader), it is EpNoLayout.
hsmodDeprecMessage :: Maybe (LWarningTxt GhcPs)reason/explanation for warning/deprecation of this module
hsmodHaddockModHeader :: Maybe (LHsDoc GhcPs)Haddock module info and description, unparsed