[commit: ghc] wip/ttypeable: TcSMonad: Introduce tcLookupId (7b90d64)
git at git.haskell.org
git at git.haskell.org
Wed Apr 13 17:54:26 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/ttypeable
Link : http://ghc.haskell.org/trac/ghc/changeset/7b90d649a1921c251eab437fc1a34d3ed4d0e47f/ghc
>---------------------------------------------------------------
commit 7b90d649a1921c251eab437fc1a34d3ed4d0e47f
Author: Ben Gamari <ben at smart-cactus.org>
Date: Sun Jan 31 17:42:57 2016 +0100
TcSMonad: Introduce tcLookupId
>---------------------------------------------------------------
7b90d649a1921c251eab437fc1a34d3ed4d0e47f
compiler/typecheck/TcSMonad.hs | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/compiler/typecheck/TcSMonad.hs b/compiler/typecheck/TcSMonad.hs
index 303fee8..d935d72 100644
--- a/compiler/typecheck/TcSMonad.hs
+++ b/compiler/typecheck/TcSMonad.hs
@@ -43,7 +43,7 @@ module TcSMonad (
getTopEnv, getGblEnv, getLclEnv,
getTcEvBinds, getTcEvBindsFromVar, getTcLevel,
getTcEvBindsMap,
- tcLookupClass,
+ tcLookupClass, tcLookupId,
-- Inerts
InertSet(..), InertCans(..),
@@ -121,7 +121,7 @@ import FamInstEnv
import qualified TcRnMonad as TcM
import qualified TcMType as TcM
import qualified TcEnv as TcM
- ( checkWellStaged, topIdLvl, tcGetDefaultTys, tcLookupClass )
+ ( checkWellStaged, topIdLvl, tcGetDefaultTys, tcLookupClass, tcLookupId )
import Kind
import TcType
import DynFlags
@@ -2720,6 +2720,9 @@ getLclEnv = wrapTcS $ TcM.getLclEnv
tcLookupClass :: Name -> TcS Class
tcLookupClass c = wrapTcS $ TcM.tcLookupClass c
+tcLookupId :: Name -> TcS Id
+tcLookupId n = wrapTcS $ TcM.tcLookupId n
+
-- Setting names as used (used in the deriving of Coercible evidence)
-- Too hackish to expose it to TcS? In that case somehow extract the used
-- constructors from the result of solveInteract
More information about the ghc-commits
mailing list