Skip to content

Commit 10418b2

Browse files
committed
Fix warnings and maintain compatibility across base versions
1 parent 880e129 commit 10418b2

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

Benchmarks/DList.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@
77

88
{-# LANGUAGE ScopedTypeVariables #-}
99
{-# LANGUAGE TemplateHaskell #-}
10+
{-# LANGUAGE CPP #-}
1011

1112
module Benchmarks.DList where
1213

1314
import Benchmarks.DefaultMain (defaultMain)
1415
import Benchmarks.Common (value, appendValue)
1516
import Prelude (Int, (+), ($), (.), (>), undefined, Maybe(..))
1617
import qualified Prelude as P
18+
19+
#if !MIN_VERSION_base(4,20,0)
1720
import qualified Data.Foldable as P
21+
#endif
1822

1923
import qualified Data.DList as S
2024

Benchmarks/Sequence.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
{-# LANGUAGE ScopedTypeVariables #-}
99
{-# LANGUAGE TemplateHaskell #-}
10+
{-# LANGUAGE CPP #-}
1011

1112
module Benchmarks.Sequence where
1213

0 commit comments

Comments
 (0)