External Publication
Visit Post

[RFC] "http-types" breakage / additions / rework

Haskell Community [Unofficial] June 19, 2026
Source

chrisdone:

I think we could extend GHC’s PackageImports (or add a new extension) to be able to specify major versions and that would let GHC expose multiple versions of a package at once.

Yeah, that sounds like it could work. We can also copy cargo’s feature of renaming packages which solves the package imports problem. Imagined syntax:

  build-deps: base
            , http-types ^>= 0.12.5 as old-http-types
            , http-types ^>= 1.0.0  as new-http-types



import "old-http-types" Network.HTTP.Types as Old
import "new-http-types" Network.HTTP.Types as New

Discussion in the ATmosphere

Loading comments...