Skip to content

Commit 90c8ef5

Browse files
committedSep 10, 2022
Fix tests for older GHCs
1 parent 9ed8ec8 commit 90c8ef5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

‎test/tests.hs

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE CPP #-}
12
{-# LANGUAGE TemplateHaskell #-}
23
module Main where
34

@@ -13,7 +14,12 @@ import Hedgehog.Range as Range ( linear )
1314
import Control.Monad (replicateM)
1415
import System.Exit (exitFailure, exitSuccess)
1516
import Data.Sequence as Seq ( foldMapWithIndex, replicateM )
16-
import Data.Semigroup (Sum (..))
17+
import Data.Semigroup
18+
( Sum (..)
19+
#if !MIN_VERSION_base(4,11,0)
20+
, Semigroup(..)
21+
#endif
22+
)
1723

1824
main :: IO ()
1925
main = do

0 commit comments

Comments
 (0)
Please sign in to comment.