Conditionally add OpenBSD's pledge(2) call -- but to which library?

Bryan O'Sullivan bos at serpentine.com
Thu Nov 12 16:09:36 UTC 2015


On Wed, Nov 11, 2015 at 1:01 PM, Matthias Kilian <kili at outback.escape.de>
wrote:

> Please note: just writing a separate package for this wouldn't help
> much (for OpenBSD ports), because it would require changing cabal
> dependencies for every client application in addition to other
> source code patches.
>

Changing cabal dependencies is the right thing to do in this case. Any code
that will use this function will already need specialized OpenBSD
knowledge, so the likelihood of it actually being used is extremely small –
whereas the cost of having a rat's nest of #ifdef usage in clients of core
libraries is already well known to be high.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20151112/eb176f91/attachment.html>


More information about the Libraries mailing list