Skip to content

git-annex fails to build with http-types-0.12.5 conflicts #8030

Description

@juhp

With http-types-0.12.5

       /home/curators/work/unpack-dir/unpacked/git-annex-10.20250416-b7244415f9831b297a6c796d62732edddcc08d4c9a58860bc00d4bee72747651/Utility/Url.hs:255:28: error: [GHC-87543]
           Ambiguous occurrence ‘hContentDisposition’.
           It could refer to
              either ‘Network.HTTP.Types.hContentDisposition’,
                     imported from ‘Network.HTTP.Types’ at Utility/Url.hs:56:1-25
                     (and originally defined in ‘Network.HTTP.Types.Header’),
                  or ‘Utility.Url.hContentDisposition’,
                     defined at Utility/Url.hs:628:1.
           |
       255 |                 <=< lookup hContentDisposition . responseHeaders
           |                            ^^^^^^^^^^^^^^^^^^^

       /home/curators/work/unpack-dir/unpacked/git-annex-10.20250416-b7244415f9831b297a6c796d62732edddcc08d4c9a58860bc00d4bee72747651/Utility/Url.hs:357:29: error: [GHC-87543]
           Ambiguous occurrence ‘hAcceptEncoding’.
           It could refer to
              either ‘Network.HTTP.Types.hAcceptEncoding’,
                     imported from ‘Network.HTTP.Types’ at Utility/Url.hs:56:1-25
                     (and originally defined in ‘Network.HTTP.Types.Header’),
                  or ‘Utility.Url.hAcceptEncoding’,
                     defined at Utility/Url.hs:625:1.
           |
       357 |         , requestHeaders = (hAcceptEncoding, B.empty) :
           |                             ^^^^^^^^^^^^^^^

       /home/curators/work/unpack-dir/unpacked/git-annex-10.20250416-b7244415f9831b297a6c796d62732edddcc08d4c9a58860bc00d4bee72747651/Utility/Url.hs:358:41: error: [GHC-87543]
           Ambiguous occurrence ‘hAcceptEncoding’.
           It could refer to
              either ‘Network.HTTP.Types.hAcceptEncoding’,
                     imported from ‘Network.HTTP.Types’ at Utility/Url.hs:56:1-25
                     (and originally defined in ‘Network.HTTP.Types.Header’),
                  or ‘Utility.Url.hAcceptEncoding’,
                     defined at Utility/Url.hs:625:1.
           |
       358 |                 filter (\(h, _) -> h /= hAcceptEncoding)
           |                                         ^^^^^^^^^^^^^^^

       /home/curators/work/unpack-dir/unpacked/git-annex-10.20250416-b7244415f9831b297a6c796d62732edddcc08d4c9a58860bc00d4bee72747651/Utility/Url.hs:487:37: error: [GHC-87543]
           Ambiguous occurrence ‘hAcceptEncoding’.
           It could refer to
              either ‘Network.HTTP.Types.hAcceptEncoding’,
                     imported from ‘Network.HTTP.Types’ at Utility/Url.hs:56:1-25
                     (and originally defined in ‘Network.HTTP.Types.Header’),
                  or ‘Utility.Url.hAcceptEncoding’,
                     defined at Utility/Url.hs:625:1.
           |
       487 |                 { requestHeaders = (hAcceptEncoding, "identity") :
           |                                     ^^^^^^^^^^^^^^^

       /home/curators/work/unpack-dir/unpacked/git-annex-10.20250416-b7244415f9831b297a6c796d62732edddcc08d4c9a58860bc00d4bee72747651/Utility/Url.hs:488:37: error: [GHC-87543]
           Ambiguous occurrence ‘hAcceptEncoding’.
           It could refer to
              either ‘Network.HTTP.Types.hAcceptEncoding’,
                     imported from ‘Network.HTTP.Types’ at Utility/Url.hs:56:1-25
                     (and originally defined in ‘Network.HTTP.Types.Header’),
                  or ‘Utility.Url.hAcceptEncoding’,
                     defined at Utility/Url.hs:625:1.
           |
       488 |                         filter ((/= hAcceptEncoding) . fst)
           |                                     ^^^^^^^^^^^^^^^

       /home/curators/work/unpack-dir/unpacked/git-annex-10.20250416-b7244415f9831b297a6c796d62732edddcc08d4c9a58860bc00d4bee72747651/Utility/Url.hs:526:43: error: [GHC-87543]
           Ambiguous occurrence ‘hContentRange’.
           It could refer to
              either ‘Network.HTTP.Types.hContentRange’,
                     imported from ‘Network.HTTP.Types’ at Utility/Url.hs:56:1-25
                     (and originally defined in ‘Network.HTTP.Types.Header’),
                  or ‘Utility.Url.hContentRange’,
                     defined at Utility/Url.hs:631:1.
           |
       526 |                 | otherwise = case lookup hContentRange (responseHeaders resp) of
           |                                           ^^^^^^^^^^^^^

I have reported it to the author via email.

cc @Vlix

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions