From 7a21f7ac4b7e148ec04c7edff6a9ca805c73297b Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 22 Jun 2023 13:57:24 +0800 Subject: [PATCH] disable hdaemonize MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cc @aycanirican @unprolix @greydot (no current issue tracker) Building library for hdaemonize-0.5.6.. [1 of 1] Compiling System.Posix.Daemonize /var/stackage/work/unpack-dir/unpacked/hdaemonize-0.5.6-a68167e6476ad268d01284686b1700451791a16aa31722433071fa5124b60686/Syst em/Posix/Daemonize.hs:292:16: error: [GHC-83865] • Couldn't match expected type: OpenFileFlags -> IO Fd with actual type: IO Fd • The function ‘openFd’ is applied to four value arguments, but its type ‘FilePath -> OpenMode -> OpenFileFlags -> IO Fd’ has only three In a stmt of a 'do' block: null <- openFd "/dev/null" ReadWrite Nothing defaultFileFlags In the expression: do null <- openFd "/dev/null" ReadWrite Nothing defaultFileFlags let sendTo fd' fd = closeFd fd >> dupTo fd' fd mapM_ (sendTo null) [stdInput, stdOutput, ....] | 292 | do null <- openFd "/dev/null" ReadWrite Nothing defaultFileFlags | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /var/stackage/work/unpack-dir/unpacked/hdaemonize-0.5.6-a68167e6476ad268d01284686b1700451791a16aa31722433071fa5124b60686/Syst em/Posix/Daemonize.hs:292:45: error: [GHC-83865] • Couldn't match expected type ‘OpenFileFlags’ with actual type ‘Maybe a0’ • In the third argument of ‘openFd’, namely ‘Nothing’ In a stmt of a 'do' block: null <- openFd "/dev/null" ReadWrite Nothing defaultFileFlags In the expression: do null <- openFd "/dev/null" ReadWrite Nothing defaultFileFlags let sendTo fd' fd = closeFd fd >> dupTo fd' fd mapM_ (sendTo null) [stdInput, stdOutput, ....] | 292 | do null <- openFd "/dev/null" ReadWrite Nothing defaultFileFlags | ^^^^^^^ --- build-constraints.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-constraints.yaml b/build-constraints.yaml index 354c540b..84a0b94c 100644 --- a/build-constraints.yaml +++ b/build-constraints.yaml @@ -1429,7 +1429,7 @@ packages: - courier "Aycan iRiCAN @aycanirican": - - hdaemonize + - hdaemonize < 0 # ghc-9.6 - hweblib "Joachim Breitner @nomeata":