| Safe Haskell | None |
|---|
Language.Haskell.Names.Interfaces
Description
Reading Symbols from and writing to interface files
- newtype NamesDB = NamesDB FilePath
- runNamesModuleT :: ModuleT Symbols IO a -> Packages -> Map ModuleName Symbols -> IO (a, Map ModuleName Symbols)
- evalNamesModuleT :: ModuleT Symbols IO a -> Packages -> IO a
- readInterface :: FilePath -> IO Symbols
- writeInterface :: FilePath -> Symbols -> IO ()
- data IfaceException = BadInterface FilePath String
High-level interface
The database used by hs-gen-iface. Use it together with
functions from Distribution.HaskellSuite.Packages.
Instances
runNamesModuleT :: ModuleT Symbols IO a -> Packages -> Map ModuleName Symbols -> IO (a, Map ModuleName Symbols)Source
Specialized version of runModuleT that works with name files
evalNamesModuleT :: ModuleT Symbols IO a -> Packages -> IO aSource
Specialized version of evalModuleT that works with name files
Low-level interface
readInterface :: FilePath -> IO SymbolsSource
Read an interface file
writeInterface :: FilePath -> Symbols -> IO ()Source
Write an interface file
Exceptions
data IfaceException Source
Constructors
| BadInterface FilePath String | Interface could not be parsed. This tells you the file name of the interface file and the parse error text. |