X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FbasicTypes%2FName.lhs;h=75198bbfa069345055b8460c33115b6ae2afc70a;hb=7739158ff9d983f80cb269f3c7cb38108e72e8ec;hp=df97181b34ff27d6fa415b54d299545bcdec5f86;hpb=b00b5bc04ff36a551552470060064f0b7d84ca30;p=ghc-hetmet.git diff --git a/compiler/basicTypes/Name.lhs b/compiler/basicTypes/Name.lhs index df97181..75198bb 100644 --- a/compiler/basicTypes/Name.lhs +++ b/compiler/basicTypes/Name.lhs @@ -1,4 +1,5 @@ % +% (c) The University of Glasgow 2006 % (c) The GRASP/AQUA Project, Glasgow University, 1992-1998 % \section[Name]{@Name@: to transmit name info from renamer to typechecker} @@ -14,6 +15,7 @@ module Name ( mkInternalName, mkSystemName, mkSystemVarName, mkSysTvName, mkFCallName, mkIPName, + mkTickBoxOpName, mkExternalName, mkWiredInName, nameUnique, setNameUnique, @@ -37,21 +39,20 @@ module Name ( import {-# SOURCE #-} TypeRep( TyThing ) -import OccName -- All of it -import Module ( Module ) -import SrcLoc ( noSrcLoc, wiredInSrcLoc, SrcLoc ) -import UniqFM ( lookupUFM, addToUFM ) -import Unique ( Unique, Uniquable(..), getKey, pprUnique, - mkUniqueGrimily, getKey# ) -import Maybes ( orElse, isJust ) +import OccName +import Module +import SrcLoc +import UniqFM +import Unique +import Maybes import Binary import FastMutInt -import FastString ( FastString, zEncodeFS ) +import FastString import Outputable -import DATA_IOREF -import GLAEXTS ( Int#, Int(..) ) -import Data.Array ( (!) ) +import Data.IORef +import GHC.Exts +import Data.Array \end{code} %************************************************************************ @@ -220,6 +221,11 @@ mkFCallName :: Unique -> String -> Name mkFCallName uniq str = Name { n_uniq = getKey# uniq, n_sort = Internal, n_occ = mkVarOcc str, n_loc = noSrcLoc } +mkTickBoxOpName :: Unique -> String -> Name +mkTickBoxOpName uniq str + = Name { n_uniq = getKey# uniq, n_sort = Internal, + n_occ = mkVarOcc str, n_loc = noSrcLoc } + mkIPName :: Unique -> OccName -> Name mkIPName uniq occ = Name { n_uniq = getKey# uniq,