From 39ccb345b7b0da3f0a5e320b2025c40cae76c822 Mon Sep 17 00:00:00 2001 From: mu <59917266+4eUeP@users.noreply.github.com> Date: Wed, 10 Apr 2024 12:35:24 +0800 Subject: [PATCH] fix: workaround for building hstream (#1790) Remove 'ANN module's, which relates to #1769 --- .hlint.yaml | 1 + common/stats/test/HStream/StatsSpec.hs | 2 -- common/stats/test/HStream/StatsSpecUtils.hs | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.hlint.yaml b/.hlint.yaml index ff71082cc..32b8e5db2 100644 --- a/.hlint.yaml +++ b/.hlint.yaml @@ -2,3 +2,4 @@ - ignore: {name: "Use if"} - ignore: {name: "Redundant bracket"} - ignore: {name: "Redundant $"} +- ignore: {name: "Use head"} diff --git a/common/stats/test/HStream/StatsSpec.hs b/common/stats/test/HStream/StatsSpec.hs index 9bf0e41e9..2fd44e4a7 100644 --- a/common/stats/test/HStream/StatsSpec.hs +++ b/common/stats/test/HStream/StatsSpec.hs @@ -13,8 +13,6 @@ import HStream.Base (runConc, setupFatalSignalHandler) import HStream.Stats import HStream.StatsSpecUtils (mkTimeSeriesTest) -{-# ANN module ("HLint: ignore Use head" :: String) #-} - spec :: Spec spec = do runIO setupFatalSignalHandler diff --git a/common/stats/test/HStream/StatsSpecUtils.hs b/common/stats/test/HStream/StatsSpecUtils.hs index 1b6fd64d8..1c1b91423 100644 --- a/common/stats/test/HStream/StatsSpecUtils.hs +++ b/common/stats/test/HStream/StatsSpecUtils.hs @@ -9,8 +9,6 @@ import Z.Data.CBytes (CBytes) import HStream.Stats (StatsHolder, resetStatsHolder) -{-# ANN module ("HLint: ignore Use head" :: String) #-} - mkTimeSeriesTest :: StatsHolder -> [Int]