Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 908687

Summary: dev-haskell/yaml-0.11.10.0 fails to build after updating to dev-lang/ghc-9.2.8
Product: Gentoo Linux Reporter: Timo Ollech <t-mo>
Component: Current packagesAssignee: Gentoo's Haskell Language team <haskell>
Status: UNCONFIRMED ---    
Severity: normal CC: scott, vowstar
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
emerge --info

Description Timo Ollech 2023-06-17 14:56:17 UTC
Created attachment 864060 [details]
build log

After updating GHC from dev-lang/ghc-9.2.7-r1 to dev-lang/ghc-9.2.8 and rebuilding all Haskell packages, dev-haskell/yaml-0.11.10.0 fails to build with the following error:

[ 1 of 10] Compiling Data.Yaml.Internal ( src/Data/Yaml/Internal.hs, dist/build/Data/Yaml/Internal.o, dist/build/Data/Yaml/Internal.dyn_o )

src/Data/Yaml/Internal.hs:148:3: error:
    Ambiguous occurrence ‘AesonException’
    It could refer to
       either ‘Data.Aeson.AesonException’,
              imported from ‘Data.Aeson’ at src/Data/Yaml/Internal.hs:37:1-17
           or ‘Data.Yaml.Internal.AesonException’,
              defined at src/Data/Yaml/Internal.hs:98:23
    |
148 |   AesonException s -> "Aeson exception:\n" ++ s
    |   ^^^^^^^^^^^^^^

src/Data/Yaml/Internal.hs:366:26: error:
    Ambiguous occurrence ‘AesonException’
    It could refer to
       either ‘Data.Aeson.AesonException’,
              imported from ‘Data.Aeson’ at src/Data/Yaml/Internal.hs:37:1-17
           or ‘Data.Yaml.Internal.AesonException’,
              defined at src/Data/Yaml/Internal.hs:98:23
    |
366 |         Left e -> Left $ AesonException e
    |                          ^^^^^^^^^^^^^^

src/Data/Yaml/Internal.hs:374:26: error:
    Ambiguous occurrence ‘AesonException’
    It could refer to
       either ‘Data.Aeson.AesonException’,
              imported from ‘Data.Aeson’ at src/Data/Yaml/Internal.hs:37:1-17
           or ‘Data.Yaml.Internal.AesonException’,
              defined at src/Data/Yaml/Internal.hs:98:23
    |
374 |         Left e -> Left $ AesonException e
    |                          ^^^^^^^^^^^^^^
Comment 1 Timo Ollech 2023-06-17 14:57:03 UTC
Created attachment 864061 [details]
emerge --info
Comment 2 Timo Ollech 2023-06-19 11:12:13 UTC
dev-haskell/yaml-0.11.11.1 builds fine, this bug can be closed on my behalf.