[ghc-9.10-rc] foldl' ambiguities in several packages
Shayne Fletcher
shayne.fletcher.50 at gmail.com
Fri May 10 12:33:01 UTC 2024
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20240510/905089ae/attachment.html>
More information about the ghc-devs
mailing list