ghc-lib-parser-9.8.2.20240223: The GHC API, decoupled from GHC versions
Safe HaskellNone
LanguageHaskell2010

GHC.Types.SourceFile

Synopsis

Documentation

data HscSource #

Constructors

HsSrcFile

.hs file

HsBootOrSig !HsBootOrSig

.hs-boot or .hsig file

Bundled Patterns

pattern HsBootFile :: HscSource 
pattern HsigFile :: HscSource 

Instances

Instances details
Show HscSource # 
Instance details

Defined in GHC.Types.SourceFile

Binary HscSource # 
Instance details

Defined in GHC.Types.SourceFile

Eq HscSource # 
Instance details

Defined in GHC.Types.SourceFile

Ord HscSource # 
Instance details

Defined in GHC.Types.SourceFile

data HsBootOrSig #

Constructors

HsBoot

.hs-boot file

Hsig

.hsig file

hscSourceToIsBoot :: HscSource -> IsBootInterface #

Tests if an HscSource is a boot file, primarily for constructing elements of BuildModule. We conflate signatures and modules because they are bound in the same namespace; only boot interfaces can be disambiguated with `import {-# SOURCE #-}`.