TiNameMaps

Plain source file: base/TI/TiNameMaps.hs (2003-01-06)

TiNameMaps is imported by: TiDs.

module TiNameMaps(module TiNameMaps,AccNames(..)) where
import List(nub)

import NameMaps(AccNames(..))
import TypedIds(IdTy(..),TypeInfo(..),idTy)
import HsIdent(HsIdentI(..))

allTypeNames ds = nub (accNames typeName ds [])
  where
    typeName x =
      case idTy x of
        Class {}                       -> (HsCon x:)
	Type TypeInfo{defType=Nothing} -> (HsVar x:)
	Type {}                        -> (HsCon x:)
	_ -> id    

Index

(HTML for this module was generated on 2006-08-12. About the conversion tool.)