On Wed, Nov 11, 2015 at 1:01 PM, Matthias Kilian <kili@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.