Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- data HscSource where
- HsSrcFile
- HsBootOrSig !HsBootOrSig
- pattern HsBootFile :: HscSource
- pattern HsigFile :: HscSource
- data HsBootOrSig
- hscSourceToIsBoot :: HscSource -> IsBootInterface
- isHsBootOrSig :: HscSource -> Bool
- isHsBootFile :: HscSource -> Bool
- isHsigFile :: HscSource -> Bool
- hscSourceString :: HscSource -> String
Documentation
HsSrcFile | .hs file |
HsBootOrSig !HsBootOrSig | .hs-boot or .hsig file |
pattern HsBootFile :: HscSource | |
pattern HsigFile :: HscSource |
data HsBootOrSig Source #
Instances
Show HsBootOrSig Source # | |
Defined in GHC.Types.SourceFile showsPrec :: Int -> HsBootOrSig -> ShowS # show :: HsBootOrSig -> String # showList :: [HsBootOrSig] -> ShowS # | |
Eq HsBootOrSig Source # | |
Defined in GHC.Types.SourceFile (==) :: HsBootOrSig -> HsBootOrSig -> Bool # (/=) :: HsBootOrSig -> HsBootOrSig -> Bool # | |
Ord HsBootOrSig Source # | |
Defined in GHC.Types.SourceFile compare :: HsBootOrSig -> HsBootOrSig -> Ordering # (<) :: HsBootOrSig -> HsBootOrSig -> Bool # (<=) :: HsBootOrSig -> HsBootOrSig -> Bool # (>) :: HsBootOrSig -> HsBootOrSig -> Bool # (>=) :: HsBootOrSig -> HsBootOrSig -> Bool # max :: HsBootOrSig -> HsBootOrSig -> HsBootOrSig # min :: HsBootOrSig -> HsBootOrSig -> HsBootOrSig # |
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 #-}`.
isHsBootOrSig :: HscSource -> Bool Source #
isHsBootFile :: HscSource -> Bool Source #
isHsigFile :: HscSource -> Bool Source #
hscSourceString :: HscSource -> String Source #