Copyright | (c) 2002 - 2004 Wolfgang Lux 2011 - 2013 Björn Peemöller |
---|---|
License | BSD-3-clause |
Maintainer | bjp@informatik.uni-kiel.de |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
This module provides an environment for resolving module aliases.
For example, if module FiniteMap
is imported via
import FiniteMap as FM
then FM
is an alias for FiniteMap
, and FiniteMap
is aliased by FM
.
Synopsis
- type AliasEnv = Map ModuleIdent ModuleIdent
- initAliasEnv :: AliasEnv
- importAliases :: [ImportDecl] -> AliasEnv
Documentation
type AliasEnv = Map ModuleIdent ModuleIdent Source #
Mapping from the original name of an imported module to its alias.
initAliasEnv :: AliasEnv Source #
Initial alias environment
importAliases :: [ImportDecl] -> AliasEnv Source #
Create an alias environment from a list of import declarations