haskell-names-0.2: Name resolution library for Haskell

Safe HaskellNone

Language.Haskell.Names.Interfaces

Contents

Description

Reading Symbols from and writing to interface files

Synopsis

High-level interface

newtype NamesDB Source

The database used by hs-gen-iface. Use it together with functions from Distribution.HaskellSuite.Packages.

Constructors

NamesDB FilePath 

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.