summaryrefslogtreecommitdiff
path: root/p/haskell-wreq/debian/patches/fix-doctests
blob: 687082f9fd920ad3a599e601c579e3c54394b106 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- a/tests/DocTests.hs
+++ b/tests/DocTests.hs
@@ -41,7 +41,7 @@
 
 getDistDir :: IO FilePath
 getDistDir = do
-  names <- getDirectoryContents "dist"
+  names <- getDirectoryContents "dist-ghc"
   return $ case filter ("dist-sandbox-" `isPrefixOf`) names of
-             (d:_) -> "dist/" ++ d
-             _     -> "dist"
+             (d:_) -> "dist-ghc/" ++ d
+             _     -> "dist-ghc"
--- a/wreq.cabal
+++ b/wreq.cabal
@@ -216,6 +216,7 @@
   if !flag(doctest)
     buildable: False
   else
+    buildable: False
     build-depends:
       base >= 4.5 && < 5,
       directory,