From 4d5df4ba9c335185f765da20f67892222df1af4d Mon Sep 17 00:00:00 2001 From: Ryan Scott Date: Tue, 30 Apr 2024 12:13:52 -0400 Subject: [PATCH] Benchmarks: Remove base-compat dependency The `plated` benchmark suite previously had a dependency on `base-compat`, which was introduced in #909 for compatibility with pre-7.10 versions of GHC. In #977, however, the minimum version of GHC was raised to 8.0, which means that there is no longer any reason for these benchmarks to depend on `base-compat`. This patch removes the dependency. --- benchmarks/plated.hs | 7 ------- lens.cabal | 1 - 2 files changed, 8 deletions(-) diff --git a/benchmarks/plated.hs b/benchmarks/plated.hs index 763739f09..f44e9f0de 100644 --- a/benchmarks/plated.hs +++ b/benchmarks/plated.hs @@ -4,13 +4,6 @@ {-# OPTIONS_GHC -funbox-strict-fields #-} module Main (main) where -#ifndef MIN_VERSION_base -#define MIN_VERSION_base(x,y,z) 1 -#endif - -import Prelude () -import Prelude.Compat - import Control.Lens import Control.DeepSeq import Criterion.Main diff --git a/lens.cabal b/lens.cabal index 7d3d3a692..8dba184b9 100644 --- a/lens.cabal +++ b/lens.cabal @@ -410,7 +410,6 @@ benchmark plated default-language: Haskell2010 build-depends: base, - base-compat >=0.11.0 && <0.15, comonad, criterion, deepseq,