aboutsummaryrefslogtreecommitdiff
path: root/haddock-test/src/Test/Haddock
diff options
context:
space:
mode:
authorEdward Z. Yang <ezyang@cs.stanford.edu>2017-03-14 14:23:35 -0700
committerBen Gamari <ben@smart-cactus.org>2017-03-23 17:20:08 -0400
commite3568da479b6297e48b8b83ee067174717fdbe22 (patch)
tree8b1c6f1ed7e9b369f9b77cbbe6ea9325c73b9b72 /haddock-test/src/Test/Haddock
parent24694932de26645331eb53b016c84a6a5c171a97 (diff)
Fix haddock-test to work with latest version of Cabal.
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> (cherry picked from commit bf3c4d72a0fda38561376eac7eda216158783267)
Diffstat (limited to 'haddock-test/src/Test/Haddock')
-rw-r--r--haddock-test/src/Test/Haddock/Config.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/haddock-test/src/Test/Haddock/Config.hs b/haddock-test/src/Test/Haddock/Config.hs
index dea101d8..e1e920f2 100644
--- a/haddock-test/src/Test/Haddock/Config.hs
+++ b/haddock-test/src/Test/Haddock/Config.hs
@@ -237,7 +237,7 @@ baseDependencies ghcPath = do
exitFailure
(ifArg:_) -> pure ifArg
ifaces pkgIndex name = do
- pkg <- join $ snd <$> lookupPackageName pkgIndex (PackageName name)
+ pkg <- join $ snd <$> lookupPackageName pkgIndex (mkPackageName name)
iface <$> haddockInterfaces pkg <*> haddockHTMLs pkg
iface file html = "--read-interface=" ++ html ++ "," ++ file