diff --git a/JuicyPixels-scale-dct.cabal b/JuicyPixels-scale-dct.cabal
--- a/JuicyPixels-scale-dct.cabal
+++ b/JuicyPixels-scale-dct.cabal
@@ -1,57 +1,63 @@
-name:           JuicyPixels-scale-dct
-version:        0.1.2
-synopsis:       Scale JuicyPixels images with DCT
-description:    Scale JuicyPixels Images with DCT
-                .
-                There is also a @friday@ version: <http://hackage.haskell.org/package/friday-scale-dct friday-scale-dct>
-category:       Graphics, Image
-homepage:       https://github.com/phadej/JuicyPixels-scale-dct#readme
-bug-reports:    https://github.com/phadej/JuicyPixels-scale-dct/issues
-author:         Oleg Grenrus <oleg.grenrus@iki.fi>
-maintainer:     Oleg Grenrus <oleg.grenrus@iki.fi>
-license:        BSD3
-license-file:   LICENSE
-build-type:     Simple
-cabal-version:  >=1.10
-tested-with:    GHC==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC==8.2.2, GHC==8.4.2
+cabal-version:      2.4
+name:               JuicyPixels-scale-dct
+version:            0.1.2.1
+synopsis:           Scale JuicyPixels images with DCT
+description:
+  Scale JuicyPixels Images with DCT
+  .
+  There is also a @friday@ version: <http://hackage.haskell.org/package/friday-scale-dct friday-scale-dct>
 
-extra-source-files:
-    CHANGELOG.md
-    phadej.png
-    README.md
+category:           Graphics, Image
+homepage:           https://github.com/phadej/JuicyPixels-scale-dct#readme
+bug-reports:        https://github.com/phadej/JuicyPixels-scale-dct/issues
+author:             Oleg Grenrus <oleg.grenrus@iki.fi>
+maintainer:         Oleg Grenrus <oleg.grenrus@iki.fi>
+license:            BSD-3-Clause
+license-file:       LICENSE
+build-type:         Simple
+tested-with:
+  GHC ==8.6.5
+   || ==8.8.4
+   || ==8.10.7
+   || ==9.0.2
+   || ==9.2.8
+   || ==9.4.8
+   || ==9.6.7
+   || ==9.8.4
+   || ==9.10.3
+   || ==9.12.4
+   || ==9.14.1
 
+extra-doc-files:
+  CHANGELOG.md
+  phadej.png
+  README.md
+
 source-repository head
-  type: git
+  type:     git
   location: https://github.com/phadej/JuicyPixels-scale-dct
 
 library
-  hs-source-dirs:
-      src
-  ghc-options: -Wall
+  hs-source-dirs:   src
+  ghc-options:      -Wall
   build-depends:
-      base        >=4.7      && <4.12
-    , base-compat >=0.6.0    && <0.11
-    , JuicyPixels >=3.2.5.3  && <3.3
-    , fft         >=0.1.8.1  && <0.2
-    , carray      >=0.1.6.1  && <0.2
-  exposed-modules:
-      Codec.Picture.ScaleDCT
+      base         >=4.12.0.0 && <4.23
+    , carray       >=0.1.6.1  && <0.2
+    , fft          >=0.1.8.1  && <0.2
+    , JuicyPixels  >=3.2.5.3  && <3.4
+
+  exposed-modules:  Codec.Picture.ScaleDCT
   default-language: Haskell2010
 
 test-suite example
-  type: exitcode-stdio-1.0
-  main-is: Example.hs
-  hs-source-dirs:
-      example
-  ghc-options: -Wall
+  type:             exitcode-stdio-1.0
+  main-is:          Example.hs
+  hs-source-dirs:   example
+  ghc-options:      -Wall
   build-depends:
       base
-    , base-compat
-    , JuicyPixels
-    , fft
-    , carray
-    , base
-    , JuicyPixels           >=3.2.8
+    , JuicyPixels            >=3.2.8
     , JuicyPixels-scale-dct
-    , time                  >=1.4.2 && <1.9
+    , time                   >=1.4.2 && <1.16
+
   default-language: Haskell2010
diff --git a/src/Codec/Picture/ScaleDCT.hs b/src/Codec/Picture/ScaleDCT.hs
--- a/src/Codec/Picture/ScaleDCT.hs
+++ b/src/Codec/Picture/ScaleDCT.hs
@@ -12,9 +12,6 @@
 --
 module Codec.Picture.ScaleDCT (scale, scaleWithKernel) where
 
-import Prelude ()
-import Prelude.Compat
-
 import Codec.Picture
        (Image (..), PixelRGBA8 (..), Traversal, generateImage, imagePixels)
 import Control.Applicative (Const (..))
