[ghc-9.10-rc] foldl' ambiguities in several packages

using the ghc-9.10 release candidate, at least all of text-short, unordered-containers and vector-stream fail to compile with ambiguities around the export of symbol `foldl'`. example: ``` unordered-containers> [1 of 8] Compiling Data.HashMap.Internal.Array unordered-containers> /private/var/folders/rj/q93vlym52875_k7nwz_c3wth0000gn/T/stack-da6d6d11ecd50280/unordered-containers-0.2.19.1/Data/HashMap/Internal/Array.hs:66:7-12: error: [GHC-87543] unordered-containers> Ambiguous occurrence ‘foldl'’. unordered-containers> It could refer to unordered-containers> either ‘Prelude.foldl'’, unordered-containers> imported from ‘Prelude’ at Data/HashMap/Internal/Array.hs:(97,1)-(98,48) unordered-containers> (and originally defined in ‘ghc-internal-9.1001.0:GHC.Internal.Data.Foldable’), unordered-containers> or ‘Data.HashMap.Internal.Array.foldl'’, unordered-containers> defined at Data/HashMap/Internal/Array.hs:380:1. unordered-containers> | unordered-containers> 66 | , foldl' unordered-containers> | ^^^^^^ ``` so far i've found all such errors can be overcome by qualification at the export site but is this expected? -- Shayne Fletcher

Hi Shayne,
I think this is expected. Most of these packages have patches merged but
maybe they just lack releases?
This is the associated CLC proposal:
https://github.com/haskell/core-libraries-committee/issues/167
Cheers,
Teo
On Fri, 10 May 2024, 13:33 Shayne Fletcher,
using the ghc-9.10 release candidate, at least all of text-short, unordered-containers and vector-stream fail to compile with ambiguities around the export of symbol `foldl'`. example: ``` unordered-containers> [1 of 8] Compiling Data.HashMap.Internal.Array unordered-containers> /private/var/folders/rj/q93vlym52875_k7nwz_c3wth0000gn/T/stack-da6d6d11ecd50280/unordered-containers-0.2.19.1/Data/HashMap/Internal/Array.hs:66:7-12: error: [GHC-87543]
unordered-containers> Ambiguous occurrence ‘foldl'’. unordered-containers> It could refer to unordered-containers> either ‘Prelude.foldl'’, unordered-containers> imported from ‘Prelude’ at Data/HashMap/Internal/Array.hs:(97,1)-(98,48) unordered-containers> (and originally defined in ‘ghc-internal-9.1001.0:GHC.Internal.Data.Foldable’), unordered-containers> or ‘Data.HashMap.Internal.Array.foldl'’, unordered-containers> defined at Data/HashMap/Internal/Array.hs:380:1. unordered-containers> | unordered-containers> 66 | , foldl' unordered-containers> | ^^^^^^ ``` so far i've found all such errors can be overcome by qualification at the export site but is this expected?
-- Shayne Fletcher _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
participants (2)
-
Shayne Fletcher
-
Teofil Camarasu