diff options
author | andy@galois.com <unknown> | 2007-07-11 07:20:02 +0000 |
---|---|---|
committer | andy@galois.com <unknown> | 2007-07-11 07:20:02 +0000 |
commit | e04f49034968322349e0f3f608e1b5a856fd6521 (patch) | |
tree | 66ad89179a9e0905fc416ec148ccbe7fd6164868 /compiler/iface/IfaceEnv.lhs | |
parent | 6abf4f532101e8e44970486b99626f583e071167 (diff) | |
download | haskell-e04f49034968322349e0f3f608e1b5a856fd6521.tar.gz |
Adding tick boxes to the interface syntax; fixes #1510
Diffstat (limited to 'compiler/iface/IfaceEnv.lhs')
-rw-r--r-- | compiler/iface/IfaceEnv.lhs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/compiler/iface/IfaceEnv.lhs b/compiler/iface/IfaceEnv.lhs index acdddb6b6b..d62aad1fb2 100644 --- a/compiler/iface/IfaceEnv.lhs +++ b/compiler/iface/IfaceEnv.lhs @@ -8,6 +8,7 @@ module IfaceEnv ( newIfaceName, newIfaceNames, extendIfaceIdEnv, extendIfaceTyVarEnv, tcIfaceLclId, tcIfaceTyVar, + tcIfaceTick, ifaceExportNames, @@ -34,6 +35,7 @@ import UniqSupply import FiniteMap import BasicTypes import SrcLoc +import MkId import Outputable \end{code} @@ -300,3 +302,19 @@ newIfaceNames occs ; return [ mkInternalName uniq occ noSrcSpan | (occ,uniq) <- occs `zip` uniqsFromSupply uniqs] } \end{code} + +%************************************************************************ +%* * + (Re)creating tick boxes +%* * +%************************************************************************ + +\begin{code} +tcIfaceTick :: Module -> Int -> IfL Id +tcIfaceTick modName tickNo + = do { uniq <- newUnique + ; return $ mkTickBoxOpId uniq modName tickNo + } +\end{code} + + |