From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 8GA1JB1FjWYatgAAe85BDQ:P1 (envelope-from ) for ; Tue, 09 Jul 2024 14:11:41 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 8GA1JB1FjWYatgAAe85BDQ (envelope-from ) for ; Tue, 09 Jul 2024 16:11:41 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=dBxN+NKl; dmarc=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720534289; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=3inXyS9uziJS36rj9DoPE10owkBlfklxXUY1rnYr3C4=; b=OFFxkAaU+ppU4Oxo4l1bg3q+4BsMOShJAtZg4dxBKhDPrOiKsVRZbiwXqo0OAU9j0fmeKr XT9PyV81P/i3ZNPhVvTdFtkWFn9ZrgF6I1hT5oSWCpKHEuQEK9ER55KJQv7uLzPDwYkX7t zYsrgbJH5mpMqn46vadPwhEG+ENGmLXx+L9g1FLstVRBDdok+/F+HtkggybNNvx4F5ZZvH lL0Njb5x5TnEoWUoCWLtK+7CewrLL9jlTaVh2Ir1Y0+Pm2StsyxrV4rD+fM3HocgkQGq2l hguDdOVqxIkFf7OWWjFRLImbP0fbSQJVtNygnvk75FuDn+/udLjSmcdCY+wbWA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720534289; a=rsa-sha256; cv=none; b=PqAPsLGlA3H3Fx4XyMhbNcpdR+lqZhFoUi7oTcw6KOtRitUzEPiJjdwIVFC/9m6bWb1tJl eKRkM+FtlIcppUQEoXEeaNSEb/jxqNiDuGpie8UAtcpwsDxploTERkcuGMfFzXMForIw4S EiBu4ug6hYV/W1m1qn2qQw0rziIK/1weZj1PxP9GMa1NDx3NRBB7yHxnCILIpmmTjkrvQG 8VkVVjQDEbO0aQV6Rai6GlgZAaHeTfP+uzS7D1/vE3pcyoQWM2Y2Pcb2y5Ew8FuxydhLf6 snXDUPbIMdBjhopquMj8cwkxb9Gjj9M8Ko2CGqqU3GR2Ajz+KFPR5lLRuayg2g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=dBxN+NKl; dmarc=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A1CF97893F for ; Tue, 09 Jul 2024 16:11:29 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRBXt-0001Y3-7F; Tue, 09 Jul 2024 10:10:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRBXi-0001O8-4m for guix-patches@gnu.org; Tue, 09 Jul 2024 10:10:06 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sRBXh-0006y9-RX for guix-patches@gnu.org; Tue, 09 Jul 2024 10:10:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sRBXn-0001Cc-Au for guix-patches@gnu.org; Tue, 09 Jul 2024 10:10:11 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44518] [PATCH v2 16/25] gnu: Add ghc-stm-delay. Resent-From: Romain GARBAGE Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 09 Jul 2024 14:10:11 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44518 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 71938@debbugs.gnu.org Cc: rekado@elephly.net, Romain GARBAGE , 44518@debbugs.gnu.org Received: via spool by 44518-submit@debbugs.gnu.org id=B44518.17205341754376 (code B ref 44518); Tue, 09 Jul 2024 14:10:11 +0000 Received: (at 44518) by debbugs.gnu.org; 9 Jul 2024 14:09:35 +0000 Received: from localhost ([127.0.0.1]:53736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRBXD-00018Q-5e for submit@debbugs.gnu.org; Tue, 09 Jul 2024 10:09:35 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:43942) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRBWy-00011E-Pa; Tue, 09 Jul 2024 10:09:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3inXyS9uziJS36rj9DoPE10owkBlfklxXUY1rnYr3C4=; b=dBxN+NKl7A9WHl3xxruMTt5XTwLk/rDpdNxjUPI1Quh6LRYDxQGqxB8P c1/krwU9XU1FvD4dY9ZwOv0Bmsy1yN2/3LC8OK1j+uMVruWVIMfuWUlnt sj/sEqSPU55DEZxQ0pgWkTvlq3JSjkxjcPpoZQI4j9w/L5VJxs9m0hCNV 4=; X-IronPort-AV: E=Sophos;i="6.09,195,1716242400"; d="scan'208";a="91739213" Received: from lfbn-bay-1-62-70.w83-193.abo.wanadoo.fr (HELO guix-A102.home) ([83.193.153.70]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jul 2024 16:08:40 +0200 From: Romain GARBAGE Date: Tue, 9 Jul 2024 15:54:00 +0200 Message-ID: <20240709140812.6183-17-romain.garbage@inria.fr> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240709140812.6183-1-romain.garbage@inria.fr> References: <20240709140812.6183-1-romain.garbage@inria.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -0.80 X-Spam-Score: -0.80 X-Migadu-Queue-Id: A1CF97893F X-Migadu-Scanner: mx11.migadu.com X-TUID: YdqQPlkDpC/q * gnu/packages/haskell-xyz.scm (ghc-stm-delay): New variable. Change-Id: If9e20a2c103549de9b4b7d63158fe34165f6036a --- gnu/packages/haskell-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index 67ced12750..6bdff48b6e 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -11757,6 +11757,31 @@ (define-public ghc-stm-conduit source and a sink.") (license license:bsd-3))) +(define-public ghc-stm-delay + (package + (name "ghc-stm-delay") + (version "0.1.1.1") + (source + (origin + (method url-fetch) + (uri (hackage-uri "stm-delay" version)) + (sha256 + (base32 "0cla21v89gcvmr1iwzibq13v1yq02xg4h6k9l6kcprj7mhd5hcmi")))) + (build-system haskell-build-system) + (properties '((upstream-name . "stm-delay"))) + (home-page "https://github.com/joeyadams/haskell-stm-delay") + (synopsis "Updatable one-shot timer polled with STM") + (description + "This library lets you create a one-shot timer, poll it using STM, and update it +to ring at a different time than initially specified. . It uses GHC event +manager timeouts when available (GHC 7.2+, @@-threaded@@, non-Windows OS), +yielding performance similar to @@@code{threadDelay}@@ and +@@@code{registerDelay}@@. Otherwise, it falls back to forked threads and +@@@code{threadDelay}@@. . [0.1.1] Add @code{tryWaitDelayIO}, improve performance +for certain cases of @@@code{newDelay}@@ and @@@code{updateDelay}@@, and improve +example.") + (license license:bsd-3))) + (define-public ghc-stmonadtrans (package (name "ghc-stmonadtrans") -- 2.45.1