diff --git a/src/Data/StaticBytes.hs b/src/Data/StaticBytes.hs index b7de430..7e92329 100644 --- a/src/Data/StaticBytes.hs +++ b/src/Data/StaticBytes.hs @@ -1,4 +1,5 @@ {-# LANGUAGE NoImplicitPrelude #-} +{-# LANGUAGE CPP #-} {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} @@ -27,6 +28,9 @@ import Data.ByteArray import qualified Data.ByteString as B import qualified Data.ByteString.Internal as B import qualified Data.Primitive.ByteArray as BA +#if MIN_VERSION_GLASGOW_HASKELL(9,4,1,0) +import Data.Type.Equality ( type (~) ) +#endif import qualified Data.Vector.Primitive as VP import qualified Data.Vector.Storable as VS import qualified Data.Vector.Unboxed as VU