From 0b734be445a0d3039ac747af7ae025855775e2ba Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sat, 28 Dec 2019 15:52:32 -0800 Subject: [PATCH] ; silence safe 0.3.18's deprecation warnings for now (max|min)imum(By)?Def are being replaced by (max|min)imumBound(By)? but the old functions have the semantics I want and I don't understand the new ones yet. This can hide other deprecation warnings in this file, and presumably the old functions will be removed later, so this is temporary. Cf https://github.com/ndmitchell/safe/issues/26 --- hledger-lib/Hledger/Data/Amount.hs | 4 ++++ hledger-lib/Hledger/Query.hs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/hledger-lib/Hledger/Data/Amount.hs b/hledger-lib/Hledger/Data/Amount.hs index 0a95be89c..867f4d910 100644 --- a/hledger-lib/Hledger/Data/Amount.hs +++ b/hledger-lib/Hledger/Data/Amount.hs @@ -40,6 +40,10 @@ exchange rates. -} +-- Silence safe 0.3.18's deprecation warnings for (max|min)imum(By)?Def for now +-- (may hide other deprecation warnings too). https://github.com/ndmitchell/safe/issues/26 +{-# OPTIONS_GHC -Wno-warnings-deprecations #-} + {-# LANGUAGE StandaloneDeriving, RecordWildCards, OverloadedStrings #-} module Hledger.Data.Amount ( diff --git a/hledger-lib/Hledger/Query.hs b/hledger-lib/Hledger/Query.hs index 50c39c88f..d2c3b1327 100644 --- a/hledger-lib/Hledger/Query.hs +++ b/hledger-lib/Hledger/Query.hs @@ -5,6 +5,10 @@ transactions..) by various criteria, and a SimpleTextParser for query expressio -} +-- Silence safe 0.3.18's deprecation warnings for (max|min)imum(By)?Def for now +-- (may hide other deprecation warnings too). https://github.com/ndmitchell/safe/issues/26 +{-# OPTIONS_GHC -Wno-warnings-deprecations #-} + {-# LANGUAGE DeriveDataTypeable, OverloadedStrings, ViewPatterns #-} {-# LANGUAGE CPP #-}