| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
GHC.Iface.Ext.Binary
Synopsis
- readHieFile :: NameCache -> FilePath -> IO HieFileResult
- readHieFileWithVersion :: (HieHeader -> Bool) -> NameCache -> FilePath -> IO (Either HieHeader HieFileResult)
- type HieHeader = (Integer, ByteString)
- writeHieFile :: FilePath -> HieFile -> IO ()
- data HieName
- toHieName :: Name -> HieName
- data HieFileResult = HieFileResult {}
- hieMagic :: [Word8]
- hieNameOcc :: HieName -> OccName
Documentation
readHieFile :: NameCache -> FilePath -> IO HieFileResult #
readHieFileWithVersion :: (HieHeader -> Bool) -> NameCache -> FilePath -> IO (Either HieHeader HieFileResult) #
type HieHeader = (Integer, ByteString) #
writeHieFile :: FilePath -> HieFile -> IO () #
Write a HieFile to the given FilePath, with a proper header and
symbol tables for Names and FastStrings.
Name's get converted into HieName's before being written into .hie
files. See toHieName and fromHieName for logic on how to convert between
these two types.
Constructors
| ExternalName !Module !OccName !SrcSpan | |
| LocalName !OccName !SrcSpan | |
| KnownKeyName !Unique |
Instances
| Outputable HieName # | |
Defined in GHC.Iface.Ext.Types | |
| Eq HieName # | |
| Ord HieName # | |
Defined in GHC.Iface.Ext.Types | |
data HieFileResult #
Constructors
| HieFileResult | |
hieNameOcc :: HieName -> OccName #