ghc-9.4.5: The GHC API
Safe HaskellSafe-Inferred
LanguageHaskell2010

GHC.Types.SourceFile

Synopsis

Documentation

data HscSource Source #

Constructors

HsSrcFile

.hs file

HsBootFile

.hs-boot file

HsigFile

.hsig file

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