diff options
Diffstat (limited to 'compiler/prelude/PrelInfo.hs')
-rw-r--r-- | compiler/prelude/PrelInfo.hs | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/compiler/prelude/PrelInfo.hs b/compiler/prelude/PrelInfo.hs index 2303a8edd3..4d1cd9af95 100644 --- a/compiler/prelude/PrelInfo.hs +++ b/compiler/prelude/PrelInfo.hs @@ -10,7 +10,7 @@ module PrelInfo ( primOpRules, builtinRules, ghcPrimExports, - wiredInThings, basicKnownKeyNames, + wiredInThings, knownKeyNames, primOpId, -- Random other things @@ -30,6 +30,7 @@ import PrimOp import DataCon import Id import MkId +import Name( Name, getName ) import TysPrim import TysWiredIn import HscTypes @@ -38,12 +39,31 @@ import TyCon import Util import {-# SOURCE #-} TcTypeNats ( typeNatTyCons ) +#ifdef GHCI +import THNames +#endif + import Data.Array -{- -************************************************************************ + +{- ********************************************************************* +* * + Known key things +* * +********************************************************************* -} + +knownKeyNames :: [Name] +knownKeyNames + = map getName wiredInThings + ++ cTupleTyConNames + ++ basicKnownKeyNames +#ifdef GHCI + ++ templateHaskellNames +#endif + +{- ********************************************************************* * * -\subsection[builtinNameInfo]{Lookup built-in names} + Wired in things * * ************************************************************************ |