Skip to content

Commit

Permalink
Fix #21 (deprecation warnings) by correct `MIN_VERSION_containers(0,5…
Browse files Browse the repository at this point in the history
…,11)`

Actually, correct would be `MIN_VERSION_containers(0,5,10,2)`, and the
warning is still raised for `containers-0.5.10.2`.  However, there is
no 4-ary version of this ternary macro.
  • Loading branch information
andreasabel committed Jul 15, 2022
1 parent de4ef68 commit 56df176
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Data/IntMap/CharMap2.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Data.Char (chr)
import Data.Char as C(ord)
import Data.List as L (map)
import qualified Data.IntMap as M
#if MIN_VERSION_containers(0,6,0)
#if MIN_VERSION_containers(0,5,11)
import qualified Data.IntMap.Internal.Debug as MD
#else
import qualified Data.IntMap as MD
Expand Down
2 changes: 1 addition & 1 deletion lib/Data/IntMap/EnumMap2.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Data.IntMap.EnumMap2 where

import Data.Foldable as F (Foldable(foldMap))
import qualified Data.IntMap as M
#if MIN_VERSION_containers(0,6,0)
#if MIN_VERSION_containers(0,5,11)
import qualified Data.IntMap.Internal.Debug as MD
#else
import qualified Data.IntMap as MD
Expand Down

0 comments on commit 56df176

Please sign in to comment.