summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorFendor <power.walross@gmail.com>2021-02-03 19:12:02 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-03-28 17:26:37 -0400
commit29d758631c0d9124485aafc89cddc4ec5a668653 (patch)
tree72efc6ad23ddc052cecd01b493384b8fbc74daab /utils
parentb02c8ef768df33ef4845da2f15583cf143a4d0e2 (diff)
downloadhaskell-29d758631c0d9124485aafc89cddc4ec5a668653.tar.gz
Add UnitId to Target record
In the future, we want `HscEnv` to support multiple home units at the same time. This means, that there will be 'Target's that do not belong to the current 'HomeUnit'. This is an API change without changing behaviour. Update haddock submodule to incorporate API changes.
Diffstat (limited to 'utils')
-rw-r--r--utils/check-exact/Main.hs1
-rw-r--r--utils/check-ppr/Main.hs1
m---------utils/haddock0
3 files changed, 2 insertions, 0 deletions
diff --git a/utils/check-exact/Main.hs b/utils/check-exact/Main.hs
index 48b9da62c4..1a3a5f2bf6 100644
--- a/utils/check-exact/Main.hs
+++ b/utils/check-exact/Main.hs
@@ -338,6 +338,7 @@ parseOneFile libdir fileName = do
let dflags2 = dflags `gopt_set` Opt_KeepRawTokenStream
_ <- setSessionDynFlags dflags2
addTarget Target { targetId = TargetFile fileName Nothing
+ , targetUnitId = homeUnitId_ dflags
, targetAllowObjCode = True
, targetContents = Nothing }
_ <- load LoadAllTargets
diff --git a/utils/check-ppr/Main.hs b/utils/check-ppr/Main.hs
index 0973d2ccfe..9cc921c404 100644
--- a/utils/check-ppr/Main.hs
+++ b/utils/check-ppr/Main.hs
@@ -87,6 +87,7 @@ parseOneFile libdir fileName = do
_ <- setSessionDynFlags dflags2
addTarget Target { targetId = TargetFile fileName Nothing
, targetAllowObjCode = True
+ , targetUnitId = homeUnitId_ dflags
, targetContents = Nothing }
_ <- load LoadAllTargets
graph <- getModuleGraph
diff --git a/utils/haddock b/utils/haddock
-Subproject 3699d74aac686c1e071ab050456698ff2ea8c7d
+Subproject 7afbc6b0af2c350a96c56237f3c2d3f3de20419