ghc-lib-parser-9.10.1.20241103: The GHC API, decoupled from GHC versions
Safe HaskellIgnore
LanguageGHC2021

GHC.Types.SourceFile

Synopsis

Documentation

data HscSource Source #

Constructors

HsSrcFile

.hs file

HsBootOrSig !HsBootOrSig

.hs-boot or .hsig file

Bundled Patterns

pattern HsBootFile :: HscSource 
pattern HsigFile :: HscSource 

hscSourceToIsBoot :: HscSource -> IsBootInterface Source #

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 #-}`.