Description: fix ambiguous occurrence of foldl' with GHC 9.10 (base-4.20)
 GHC 9.10 exports foldl' from Prelude, which clashes with the module-local
 vector-based foldl' defined in Hkl.Image and makes the unqualified use in
 sum' an ambiguous occurrence (GHC-87543). Add an explicit
 "import Prelude hiding (foldl', length)" so the local definitions win.
 length is hidden as well because it is already imported explicitly from
 Data.Vector.Storable.Mutable in this module.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: vendor
Forwarded: no
Last-Update: 2026-09-16

--- hkl-5.1.3.orig/binoculars-ng/src/Hkl/Image.hs
+++ hkl-5.1.3/binoculars-ng/src/Hkl/Image.hs
@@ -12,6 +12,11 @@ import           Data.Vector.Storable.Mu
 import           Data.Word                    (Word16, Word32)
 import           System.IO.Unsafe             (unsafePerformIO)
 
+-- GHC 9.10 (base-4.20) exports foldl' from Prelude, which clashes with the
+-- vector-based foldl' defined in this module; length is imported explicitly
+-- from Data.Vector.Storable.Mutable, so hide the Prelude one as well.
+import           Prelude                      hiding (foldl', length)
+
 data Image = ImageInt32 (IOVector Int32)
            | ImageWord16 (IOVector Word16)
            | ImageWord32 (IOVector Word32)

