aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/Backends/Hyperlinker/Parser.hs
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2020-08-05 11:31:49 +0200
committerSylvain Henry <sylvain@haskus.fr>2020-08-12 11:58:49 +0200
commit4e12c3fa784dd906a69306f88f466248fb1ff933 (patch)
tree79d89ecabc42ec8c2b151e5acf7b0b1e49d3f3fd /haddock-api/src/Haddock/Backends/Hyperlinker/Parser.hs
parent7de9589e0191bbd79521597d35c2a0c68d2c9add (diff)
Fix after HomeUnit
Diffstat (limited to 'haddock-api/src/Haddock/Backends/Hyperlinker/Parser.hs')
-rw-r--r--haddock-api/src/Haddock/Backends/Hyperlinker/Parser.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/haddock-api/src/Haddock/Backends/Hyperlinker/Parser.hs b/haddock-api/src/Haddock/Backends/Hyperlinker/Parser.hs
index 114eafa9..77017689 100644
--- a/haddock-api/src/Haddock/Backends/Hyperlinker/Parser.hs
+++ b/haddock-api/src/Haddock/Backends/Hyperlinker/Parser.hs
@@ -22,6 +22,7 @@ import GHC.Utils.Panic ( panic )
import GHC.Driver.Ppr ( showSDoc )
import GHC.Types.SrcLoc
import GHC.Data.StringBuffer ( StringBuffer, atEnd )
+import GHC.Unit ( homeUnitId )
import Haddock.Backends.Hyperlinker.Types as T
import Haddock.GhcUtils
@@ -48,7 +49,7 @@ parse dflags fpath bs = case unP (go False []) initState of
start = mkRealSrcLoc (mkFastString fpath) 1 1
pflags = mkParserFlags' (warningFlags dflags)
(extensionFlags dflags)
- (homeUnitId dflags)
+ (homeUnitId (mkHomeUnitFromFlags dflags))
(safeImportsOn dflags)
False -- lex Haddocks as comment tokens
True -- produce comment tokens