From 65d029eaf23c31bf7f4ae8ad2292ba30720f2182 Mon Sep 17 00:00:00 2001 From: Thomas Schilling Date: Mon, 6 Oct 2008 22:29:40 +0000 Subject: [PATCH] Add accessors to 'Target' fields and haddockify. MERGE TO 6.10 --- compiler/main/HscTypes.lhs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/compiler/main/HscTypes.lhs b/compiler/main/HscTypes.lhs index 30362a8..94d0f9e 100644 --- a/compiler/main/HscTypes.lhs +++ b/compiler/main/HscTypes.lhs @@ -497,9 +497,11 @@ hscEPS hsc_env = readIORef (hsc_EPS hsc_env) -- is for use in an IDE where the file hasn't been saved by -- the user yet). data Target = Target - TargetId -- module or filename - Bool -- object code allowed? - (Maybe (StringBuffer,ClockTime)) -- in-memory text buffer? + { targetId :: TargetId -- ^ module or filename + , targetAllowObjCode :: Bool -- ^ object code allowed? + , targetContents :: Maybe (StringBuffer,ClockTime) + -- ^ in-memory text buffer? + } data TargetId = TargetModule ModuleName -- 1.7.10.4