-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't build with Cabal HEAD (2.1) #23
Comments
It looks like the type of Perhaps this patch would do the trick? (Disclaimer: I haven't tried compiling this.) diff --git a/src/Distribution/Extra/Doctest.hs b/src/Distribution/Extra/Doctest.hs
index b87b811..239eb70 100644
--- a/src/Distribution/Extra/Doctest.hs
+++ b/src/Distribution/Extra/Doctest.hs
@@ -224,7 +224,12 @@ generateBuildModule testSuiteName flags pkg lbi = do
createDirectoryIfMissingVerbose verbosity True testAutogenDir
-- write autogen'd file
- rewriteFile (testAutogenDir </> "Build_doctests.hs") $ unlines
+#if MIN_VERSION_Cabal(2,1,0)
+ rewriteFile verbosity
+#else
+ rewriteFile
+#endif
+ (testAutogenDir </> "Build_doctests.hs") $ unlines
[ "module Build_doctests where"
, ""
, "import Prelude" |
Actually, this change to |
I am working on a project that requires features from the latest HEAD version of
Cabal
(see haskell/cabal#4799). Something in my dependency tree pulled incabal-doctest
which caused my build to fail with this error:I initially thought this was a problem with
distributive
(see ekmett/distributive#37) but was sent here instead.I tried to fix this by bumping the bounds (
--allow-newer
), but the build failed:The text was updated successfully, but these errors were encountered: