Announce: Haskell Platform 2012.4.0.0

Johan Tibell johan.tibell at
Wed Nov 7 23:33:18 CET 2012

On Wed, Nov 7, 2012 at 2:09 PM, Matthias Kilian <kili at>wrote:

> Small safety hint for distributors: the haskell-platform.cabal file
> mandates network == and HTTP == 4000.2.5, but the latter
> by default depends on  network >= 2.4 && < 2.5. So if you want to
> avoid to include the same package in different versions (which at
> least OpenBSD does), you'll have to configure HTTP with -fnetwork23
> (which changes the dependency to network < 2.4).

 I think HTTP can solve this in a better way, instead of using

    #ifdef NETWORK23
    uriDefaultTo a b = maybe a id (a `relativeTo` b)
    uriDefaultTo a b = a `relativeTo` b

it could use

    #ifdef MIN_VERSION_network(2,4,0)
    uriDefaultTo a b = a `relativeTo` b
    uriDefaultTo a b = maybe a id (a `relativeTo` b)

That way it will compile on both old and new network versions without any
user interventions (including cabal flag).

-- Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Libraries mailing list