Announce: Haskell Platform 2012.4.0.0

Ganesh Sittampalam ganesh at earth.li
Thu Nov 8 00:00:34 CET 2012


On 07/11/2012 22:33, Johan Tibell wrote:
> On Wed, Nov 7, 2012 at 2:09 PM, Matthias Kilian <kili at outback.escape.de
> <mailto:kili at outback.escape.de>> wrote:
> 
>     Small safety hint for distributors: the haskell-platform.cabal file
>     mandates network == 2.3.1.0 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)
>     #else
>     uriDefaultTo a b = a `relativeTo` b
>     #endif
> 
> it could use
> 
>     #ifdef MIN_VERSION_network(2,4,0)
>     uriDefaultTo a b = a `relativeTo` b
>     #else
>     uriDefaultTo a b = maybe a id (a `relativeTo` b)
>     #endif
> 
> That way it will compile on both old and new network versions without
> any user interventions (including cabal flag).

This has already been changed in the most recent HTTP version, but
that's not in the platform.

Ganesh




More information about the Libraries mailing list