Discussion:
[Haskell-cafe] Creating the network-bsd package
Kazu Yamamoto (山本和彦)
2018-10-12 03:44:13 UTC
Permalink
Hi,

We the network package maintainers are planning to release network
v3.0.0.0 which enables extending socket addresses. In this version, we
will remove the Network.BSD module which version 2.7 already
deprecates.

Unfortunately, it appeared that many users use Network.BSD and there
is no good alternative. So, I would like to split it into another
package, say, network-bsd.

Some years ago, the same thing happened to Network.URI, resulting in
the network-uri and network-uri-flag packages. Currently, I'm planing
to take the same approach:

----
flag network-bsd
library
-- ...
if flag(network-bsd)
build-depends: network-bsd >= 3.0, network >= 3.0
else
build-depends: network-bsd < 3.0, network < 3.0
---

Or

----
build-depends:
network >= 2.5 && < 2.7,
network-bsd >= 2.5 && < 2.7,
network-bsd-flag == 0.1.*
---

Question: is this a correct appoarch? Or are there any better ways to
split Netwrok.BSD?

--Kazu
Fumiaki Kinoshita
2018-10-12 05:47:38 UTC
Permalink
I was having trouble because of the deprecation; network-bsd would be
really appreciated. As for splitting, I think there's nothing special to
do. On users side I'd prefer flags.
Post by Kazu Yamamoto (山本和彦)
Hi,
We the network package maintainers are planning to release network
v3.0.0.0 which enables extending socket addresses. In this version, we
will remove the Network.BSD module which version 2.7 already
deprecates.
Unfortunately, it appeared that many users use Network.BSD and there
is no good alternative. So, I would like to split it into another
package, say, network-bsd.
Some years ago, the same thing happened to Network.URI, resulting in
the network-uri and network-uri-flag packages. Currently, I'm planing
----
flag network-bsd
library
-- ...
if flag(network-bsd)
build-depends: network-bsd >= 3.0, network >= 3.0
else
build-depends: network-bsd < 3.0, network < 3.0
---
Or
----
network >= 2.5 && < 2.7,
network-bsd >= 2.5 && < 2.7,
network-bsd-flag == 0.1.*
---
Question: is this a correct appoarch? Or are there any better ways to
split Netwrok.BSD?
--Kazu
_______________________________________________
Haskell-Cafe mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Loading...