X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=compiler%2Fmain%2FHscTypes.lhs;h=d5077fe7ad8590e2419e3fd8652c05ae05d1b443;hb=3d73e45b0909b9669d4679cbda29fa2b17b98d2e;hp=79092388cb2630ae96d2c22a0c89d5bee204a429;hpb=50c50170891e91e1961ef67e2677e61c4d8f76e2;p=ghc-hetmet.git diff --git a/compiler/main/HscTypes.lhs b/compiler/main/HscTypes.lhs index 7909238..d5077fe 100644 --- a/compiler/main/HscTypes.lhs +++ b/compiler/main/HscTypes.lhs @@ -255,7 +255,10 @@ hscEPS hsc_env = readIORef (hsc_EPS hsc_env) -- module. If so, use this instead of the file contents (this -- is for use in an IDE where the file hasn't been saved by -- the user yet). -data Target = Target TargetId (Maybe (StringBuffer,ClockTime)) +data Target = Target + TargetId -- module or filename + Bool -- object code allowed? + (Maybe (StringBuffer,ClockTime)) -- in-memory text buffer? data TargetId = TargetModule ModuleName @@ -268,7 +271,8 @@ data TargetId deriving Eq pprTarget :: Target -> SDoc -pprTarget (Target id _) = pprTargetId id +pprTarget (Target id obj _) = + (if obj then char '*' else empty) <> pprTargetId id instance Outputable Target where ppr = pprTarget