haskell-names-0.9.1: 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

Orphan instances