X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FbasicTypes%2FIdInfo.lhs;fp=ghc%2Fcompiler%2FbasicTypes%2FIdInfo.lhs;h=54578ae2f4f8aa3d03e4ee291a5854e76a437a29;hb=23f40f0e9be6d4aa5cf9ea31d73f4013f8e7b4bd;hp=f4cb7062e18dfefd742f090415400756f8d08f6f;hpb=9b6858cb53438a2651ab00202582b13f95036058;p=ghc-hetmet.git diff --git a/ghc/compiler/basicTypes/IdInfo.lhs b/ghc/compiler/basicTypes/IdInfo.lhs index f4cb706..54578ae 100644 --- a/ghc/compiler/basicTypes/IdInfo.lhs +++ b/ghc/compiler/basicTypes/IdInfo.lhs @@ -87,8 +87,8 @@ import BasicTypes ( OccInfo(..), isFragileOcc, isDeadOcc, seqOccInfo, isLoopBrea Activation(..) ) import DataCon ( DataCon ) +import TyCon ( TyCon, FieldLabel ) import ForeignCall ( ForeignCall ) -import FieldLabel ( FieldLabel ) import NewDemand import Outputable import Maybe ( isJust ) @@ -230,7 +230,8 @@ an IdInfo.hi-boot, but no Id.hi-boot, and GlobalIdDetails is imported data GlobalIdDetails = VanillaGlobal -- Imported from elsewhere, a default method Id. - | RecordSelId FieldLabel -- The Id for a record selector + | RecordSelId TyCon FieldLabel -- The Id for a record selector + | DataConWorkId DataCon -- The Id for a data constructor *worker* | DataConWrapId DataCon -- The Id for a data constructor *wrapper* -- [the only reasons we need to know is so that @@ -255,7 +256,7 @@ instance Outputable GlobalIdDetails where ppr (ClassOpId _) = ptext SLIT("[ClassOp]") ppr (PrimOpId _) = ptext SLIT("[PrimOp]") ppr (FCallId _) = ptext SLIT("[ForeignCall]") - ppr (RecordSelId _) = ptext SLIT("[RecSel]") + ppr (RecordSelId _ _) = ptext SLIT("[RecSel]") \end{code}