Skip to content

Cabal's dependency on containers is too loose #11303

@mniip

Description

@mniip

Cabal 3.14.0.0, 3.14.1.0, 3.14.1.1, 3.14.2.0, 3.16.0.0 declare that they depend on containers >=0.5.0.0, however they fail to build against containers-0.5.7.0 and containers-0.5.7.1:

src/Distribution/Simple/SetupHooks/Internal.hs:864:10: error:                                                                                                                                                                                    
    Not in scope: ‘Map.traverseMaybeWithKey’                                                                                                                                                                                                     
    Perhaps you meant ‘Map.traverseWithKey’ (imported from Data.Map)                                                                                                                                                                             
    Module ‘Data.Map’ does not export ‘traverseMaybeWithKey’.                                                                                                                                                                                    
    |                                                                                                                                                                                                                                            
864 |     flip Map.traverseMaybeWithKey allRules $                                                                                                                                                                                               
    |          ^^^^^^^^^^^^^^^^^^^^^^^^                                    

traverseMaybeWithKey was added in containers-0.5.8: https://hackage-content.haskell.org/package/containers-0.8/docs/Data-Map-Internal.html#v:traverseMaybeWithKey

This can be reproduced using GHC 8.8 - 9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions