diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index 20668d229f38..2dbcbdff4c79 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -851,4 +851,7 @@ self: super: {
   # https://github.com/hspec/hspec/issues/307
   hspec-contrib = dontCheck super.hspec-contrib;
 
+  # https://github.com/ekmett/lens/issues/713
+  lens = disableCabalFlag super.lens "test-doctests";
+
 }