haskell-names-0.5.0: Name resolution library for Haskell

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Names.GlobalSymbolTable

Description

This module is designed to be imported qualified.

Synopsis

Documentation

type Table = Map QName [Symbol] Source

Global symbol table — contains names declared somewhere at the top level.

empty :: Table Source

Empty global symbol table.

mergeTables :: Table -> Table -> Table Source

For each name take the union of the lists of symbols they refer to.

data Result l Source

Constructors

SymbolFound Symbol 
Error (Error l) 
Special 

lookupMethod :: Name l -> Table -> (Result l, Maybe QName) Source

Methods can sometimes be referenced unqualified and still be resolved to a symbols that is only in scope qualified. https://www.haskell.org/pipermail/haskell-prime/2008-April/002569.html The test for this is testsannotationsQualifiedMethods.hs