From f281a9c99e27be9d5f228b6dd9b375a26febcdc3 Mon Sep 17 00:00:00 2001
From: "Edward Z. Yang" <ezyang@cs.stanford.edu>
Date: Sat, 8 Oct 2016 00:13:39 -0700
Subject: [PATCH] Comments on ghcOptInstantiatedWith.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
---
 Cabal/Distribution/Simple/Program/GHC.hs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Cabal/Distribution/Simple/Program/GHC.hs b/Cabal/Distribution/Simple/Program/GHC.hs
index 55f5fa5ac5..2de091ff6f 100644
--- a/Cabal/Distribution/Simple/Program/GHC.hs
+++ b/Cabal/Distribution/Simple/Program/GHC.hs
@@ -90,6 +90,10 @@ data GhcOptions = GhcOptions {
   -- is.  This only gets set when 'ghcOptInstantiatedWith' is non-empty
   ghcOptThisComponentId :: Flag ComponentId,
 
+  -- | How the requirements of the package being compiled are to
+  -- be filled.  When typechecking an indefinite package, the 'OpenModule'
+  -- is always a 'OpenModuleVar'; otherwise, it specifies the installed module
+  -- that instantiates a package.
   ghcOptInstantiatedWith :: [(ModuleName, OpenModule)],
 
   -- | No code? (But we turn on interface writing
-- 
GitLab