<div dir="ltr"><div>I see the following errors when compiling with ghc head version:</div><div><br></div>$ ghc-stage2 --version<br>The Glorious Glasgow Haskell Compilation System, version 9.3.20210608<br><br>$ cabal build --with-compiler ghc-stage2 --allow-newer<br><br>Data/Colour/CIE.hs:80:12: error:<br>    Ambiguous occurrence ‘sum’<br>    It could refer to<br>       either ‘Prelude.sum’,<br>              imported from ‘Prelude’ at Data/Colour/CIE.hs:25:8-22<br>              (and originally defined in ‘Data.Foldable’)<br>           or ‘Data.List.sum’,<br>              imported from ‘Data.List’ at Data/Colour/CIE.hs:41:1-16<br>              (and originally defined in ‘GHC.List’)<br>   |<br>80 |    total = sum $ map fst l<br><div>   |            ^^^</div><div><br></div><div>Can someone briefly describe this change and what's the recommended way of fixing this? Just hide the Data.List definition? I do not see this mentioned in the release notes of 9.2/9.4 here: <a href="https://ghc.gitlab.haskell.org/ghc/doc/users_guide/9.2.1-notes.html">https://ghc.gitlab.haskell.org/ghc/doc/users_guide/9.2.1-notes.html</a></div><div><br></div><div>-harendra<br></div></div>