haskell-names-0.6.0: Name resolution library for Haskell

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Names.Environment

Contents

Synopsis

Documentation

type Environment = Map ModuleName [Symbol] Source

A map from module name to list of symbols it exports.

Load a predefined environment

loadBase :: IO Environment Source

Load a basic environment that contains modules very similar to GHC's base package.

Read and write symbols files

readSymbols :: FilePath -> IO [Symbol] Source

Read symbols from a file.

writeSymbols :: FilePath -> [Symbol] -> IO () Source

Write symbols to a file.

Exceptions

data SymbolsFileException Source

Constructors

BadSymbolsFile FilePath String

Symbols could not be parsed. This tells you the name of the file and the parse error text.