diff --git a/tests/TestSuite.hs b/tests/TestSuite.hs index e25461c..7f06228 100644 --- a/tests/TestSuite.hs +++ b/tests/TestSuite.hs @@ -7,6 +7,7 @@ -- available to you by its authors as open source software: you can -- redistribute it and/or modify it under a BSD licence. -- +{-# LANGUAGE CPP #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE OverloadedStrings #-} @@ -40,9 +41,12 @@ import Data.Aeson ( (.=), ) import Data.Aeson.Encode.Pretty +#if MIN_VERSION_aeson(2,0,0) import qualified Data.Aeson.KeyMap as KeyMap +#else +import qualified Data.HashMap.Strict as KeyMap +#endif import Data.Bits -import qualified Data.HashMap.Strict as Map import Data.Maybe (fromJust) import Data.Monoid import Data.String