From 29f646b7fe73bef51b2138c9065ab2ef47c52d9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9cate=20Moonlight?= Date: Mon, 18 Sep 2023 13:58:10 +0200 Subject: [PATCH] Hide Data.List.List import --- src/Imports.hs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Imports.hs b/src/Imports.hs index 8d655925..d1bbd057 100644 --- a/src/Imports.hs +++ b/src/Imports.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE CPP #-} module Imports (module Imports) where import Control.Applicative as Imports @@ -6,7 +7,11 @@ import Control.Exception as Imports (Exception(..)) import Control.Monad as Imports import Control.Monad.IO.Class as Imports import Data.Bifunctor as Imports +#if MIN_VERSION_base(4,20,0) +import Data.List as Imports hiding (List, sort, nub) +#else import Data.List as Imports hiding (sort, nub) +#endif import Data.Monoid as Imports (Monoid(..)) import Data.Semigroup as Imports (Semigroup(..)) import Data.String as Imports