diff --git a/dev-haskell/foldl/files/foldl-1.4.15-cabal-doctest.patch b/dev-haskell/foldl/files/foldl-1.4.15-cabal-doctest.patch index 6c554607eff53..a5fad758b4495 100644 --- a/dev-haskell/foldl/files/foldl-1.4.15-cabal-doctest.patch +++ b/dev-haskell/foldl/files/foldl-1.4.15-cabal-doctest.patch @@ -18,11 +18,15 @@ diff --git a/Setup.hs b/Setup.hs index 9a994af..f21ad76 100644 --- a/Setup.hs +++ b/Setup.hs -@@ -1,2 +1,19 @@ +@@ -1,2 +1,23 @@ +{-# LANGUAGE CPP #-} + +module Main (main) where + ++#ifndef MIN_VERSION_cabal_doctest ++#define MIN_VERSION_cabal_doctest(x,y,z) 0 ++#endif ++ +#if MIN_VERSION_cabal_doctest(1,0,0) + +import Distribution.Extra.Doctest ( defaultMainWithDoctests )