From a8031de729d30e08d45f483c73e20e728a1e1d06 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sat, 18 Aug 2018 19:26:07 +0100 Subject: [PATCH] tests: fix build error with GHC < 8.4 --- hledger-lib/Hledger/Utils/Test.hs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hledger-lib/Hledger/Utils/Test.hs b/hledger-lib/Hledger/Utils/Test.hs index 0e6a73b23..7dab6d969 100644 --- a/hledger-lib/Hledger/Utils/Test.hs +++ b/hledger-lib/Hledger/Utils/Test.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ScopedTypeVariables #-} @@ -27,6 +28,9 @@ module Hledger.Utils.Test ( import Control.Exception import Control.Monad import Control.Monad.State.Strict (StateT, evalStateT) +#if !(MIN_VERSION_base(4,11,0)) +import Data.Monoid ((<>)) +#endif import Data.CallStack import Data.Functor.Identity import Data.List