Skip to content

Build failure with GHC 9.14 and ShellCheck-0.4.0 #3423

@sjakobi

Description

@sjakobi

cabal install ShellCheck decided to build the deprecated v0.4.0 because apparently to other version has bounds compatible with GHC 9.14 yet. The build failed with:

ShellCheck/Analytics.hs:2698:38: error: [GHC-76037]
    • Not in scope: ‘Map.insertWith'’
    • Note: The module ‘Data.Map’ does not export ‘insertWith'’.
    Suggested fix:
      Perhaps use one of these:
        ‘Map.insertWith’ (imported from Data.Map),
        ‘Map.insertWithKey’ (imported from Data.Map)
     |
2698 |         modify (\(read, written) -> (Map.insertWith' (const id) name place read, written))
     |                                      ^^^^^^^^^^^^^^^

It would be good to revise the dependency bounds so cabal doesn't try to use it for new GHC versions. Something like containers < 0.6 should do the trick. If you don't mind, I can use my Hackage Trustee powers and add a corresponding revision for v0.4.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions