commercialhaskell / commercialhaskell/stackage

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

Open
#8,030 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
Dockerfile
Stars
551
Forks
825
Avg merge
2d 16m
Merged PRs (30d)
8

Description

With [http-types-0.12.5](https://hackage.haskell.org/package/http-types-0.12.5/changelog)

```
/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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.