| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
GHC.Types.SourceFile
Synopsis
- data HscSource
- hscSourceToIsBoot :: HscSource -> IsBootInterface
- isHsBootOrSig :: HscSource -> Bool
- isHsigFile :: HscSource -> Bool
- hscSourceString :: HscSource -> String
Documentation
Constructors
| HsSrcFile | .hs file |
| HsBootFile | .hs-boot file |
| HsigFile | .hsig file |
Instances
| Show HscSource Source # | |
| Binary HscSource Source # | |
| Eq HscSource Source # | |
| Ord HscSource Source # | |
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 #
isHsigFile :: HscSource -> Bool Source #
hscSourceString :: HscSource -> String Source #