Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
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 a Source
Specialized version of evalModuleT
that works with name files
Low-level interface
readInterface :: FilePath -> IO Symbols Source
Read an interface file
writeInterface :: FilePath -> Symbols -> IO () Source
Write an interface file
Exceptions
data IfaceException Source
BadInterface FilePath String | Interface could not be parsed. This tells you the file name of the interface file and the parse error text. |