Safe Haskell | None |
---|---|
Language | Haskell2010 |
HieBin
Synopsis
- readHieFile :: NameCache -> FilePath -> IO (HieFileResult, NameCache)
- readHieFileWithVersion :: (HieHeader -> Bool) -> NameCache -> FilePath -> IO (Either HieHeader (HieFileResult, NameCache))
- 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, NameCache) Source #
readHieFileWithVersion :: (HieHeader -> Bool) -> NameCache -> FilePath -> IO (Either HieHeader (HieFileResult, NameCache)) Source #
type HieHeader = (Integer, ByteString) Source #
writeHieFile :: FilePath -> HieFile -> IO () Source #
Write a HieFile
to the given FilePath
, with a proper header and
symbol tables for Name
s and FastString
s
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 |
data HieFileResult Source #
Constructors
HieFileResult | |
hieNameOcc :: HieName -> OccName Source #