HieBin

ghc-8.8.0.20190424: The GHC API

Safe Haskell | None
Language | Haskell2010

HieBin

Synopsis

- readHieFile :: Binary a => NameCache -> FilePath -> IO (a, NameCache)
- writeHieFile :: Binary a => FilePath -> a -> IO ()
- data HieName
  - = ExternalName !Module !OccName !SrcSpan
  - | LocalName !OccName !SrcSpan
  - | KnownKeyName !Unique
- toHieName :: Name -> HieName

# Documentation

readHieFile :: Binary a => NameCache -> FilePath -> IO (a, NameCache) Source #

writeHieFile :: Binary a => FilePath -> a -> IO () Source #

data HieName Source #

`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

Instances details

Eq HieName # |
Instance details Defined in HieBin Methods (==) :: HieName -> HieName -> Bool # (/=) :: HieName -> HieName -> Bool #
Ord HieName # |
Instance details Defined in HieBin Methods compare :: HieName -> HieName -> Ordering # (<) :: HieName -> HieName -> Bool # (<=) :: HieName -> HieName -> Bool # (>) :: HieName -> HieName -> Bool # (>=) :: HieName -> HieName -> Bool # max :: HieName -> HieName -> HieName # min :: HieName -> HieName -> HieName #
Outputable HieName # |
Instance details Defined in HieBin Methods ppr :: HieName -> SDoc Source # pprPrec :: Rational -> HieName -> SDoc Source #

toHieName :: Name -> HieName Source #