Skip to content

Commit f21d174

Browse files
authored
Enable doctests for disabled GHC versions (#478)
624c0ab fixed most of the issues. And indeed we can run doctests on GHC>=8.6. However running doctests on macos caused linker errors for GHC 8.10 and 9.0 > ld: warning: -undefined dynamic_lookup may not work with chained fixups
1 parent 24426ad commit f21d174

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

vector/vector.cabal

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -263,20 +263,13 @@ test-suite vector-doctest
263263
main-is: doctests.hs
264264
hs-source-dirs: tests
265265
default-language: Haskell2010
266-
-- Older GHC don't support DerivingVia
266+
-- Older GHC don't support DerivingVia and doctests use them
267267
if impl(ghc < 8.6)
268268
buildable: False
269-
-- GHC 8.10 fails to run doctests for some reason
270-
if impl(ghc >= 8.10) && impl(ghc < 8.11)
269+
-- Attempts to run doctests on macos on GHC8.10 and 9.0 cause linker errors:
270+
-- > ld: warning: -undefined dynamic_lookup may not work with chained fixups
271+
if os(darwin) && impl(ghc >= 8.10) && impl(ghc < 9.2)
271272
buildable: False
272-
-- GHC 9.0 fails to run doctests for some reason too
273-
if impl(ghc >= 9.0) && impl(ghc < 9.1)
274-
buildable: False
275-
-- And GHC 9.2 too
276-
if impl(ghc >= 9.2) && impl(ghc < 9.2.3)
277-
buildable: False
278-
if impl(ghc >= 9.2.3) && impl(ghc < 9.3)
279-
buildable: True
280273
build-depends:
281274
base -any
282275
, doctest >=0.15 && <0.23

0 commit comments

Comments
 (0)