Add accessors to 'Target' fields and haddockify.
authorThomas Schilling <nominolo@googlemail.com>
Mon, 6 Oct 2008 22:29:40 +0000 (22:29 +0000)
committerThomas Schilling <nominolo@googlemail.com>
Mon, 6 Oct 2008 22:29:40 +0000 (22:29 +0000)
MERGE TO 6.10

compiler/main/HscTypes.lhs

index 30362a8..94d0f9e 100644 (file)
@@ -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