From 05397334edf2526210596dbe7faedeb5bd8eedb0 Mon Sep 17 00:00:00 2001 From: VegOwOtenks Date: Thu, 14 Aug 2025 09:39:30 +0200 Subject: [PATCH] hack[tests]: Disable the specialization warnings --- test/Test/Data/Map/Implicit.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/Test/Data/Map/Implicit.hs b/test/Test/Data/Map/Implicit.hs index 2b89341..c456df0 100644 --- a/test/Test/Data/Map/Implicit.hs +++ b/test/Test/Data/Map/Implicit.hs @@ -1,6 +1,7 @@ {-# LANGUAGE Unsafe #-} -- unsafe: I am using TemplateHaskell from a dependency -{-# LANGUAGE TemplateHaskell #-} -{-# LANGUAGE TypeApplications #-} +{-# LANGUAGE TemplateHaskell #-} -- for 'quickCheckAll' +{-# OPTIONS_GHC -Wno-all-missed-specialisations #-} -- a lot of warnings for unspecialized 'read' and 'show', which I cannot specialize +-- I wouldn't know how at least, they're not my datatypes, I cannot use the hint and add an 'INLINABLE' pragma module Test.Data.Map.Implicit (prop_readShowIdentityRoundtrip, prop_readShowMaybeRoundtrip, runTests) where import Test.QuickCheck.Roundtrip (roundtrips) import Text.Show (show)