From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8FFkJ2D8uGDONAEAgWs5BA (envelope-from ) for ; Thu, 03 Jun 2021 17:59:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 2HrkImD8uGBMZwAA1q6Kng (envelope-from ) for ; Thu, 03 Jun 2021 15:59:28 +0000 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 590F62A589 for ; Thu, 3 Jun 2021 17:59:28 +0200 (CEST) Received: from localhost ([::1]:50050 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lopkl-0008Eb-Ab for larch@yhetil.org; Thu, 03 Jun 2021 11:59:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35084) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lopkO-0007N5-7r for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33041) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lopkN-0006g3-Vv for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lopkN-0001xI-V4 for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48813] [PATCH 6/8] gnu: Add ghc-data-tree-print. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Jun 2021 15:59:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48813 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48813@debbugs.gnu.org Received: via spool by 48813-submit@debbugs.gnu.org id=B48813.16227359107428 (code B ref 48813); Thu, 03 Jun 2021 15:59:03 +0000 Received: (at 48813) by debbugs.gnu.org; 3 Jun 2021 15:58:30 +0000 Received: from localhost ([127.0.0.1]:44578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lopjq-0001ve-EG for submit@debbugs.gnu.org; Thu, 03 Jun 2021 11:58:30 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:53390 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lopjb-0001u8-KP for 48813@debbugs.gnu.org; Thu, 03 Jun 2021 11:58:16 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1622735889; bh=5gdi/viyBpKnjGVN5Hs8CixuTyBmNiNpOV6XE+rC7Ow=; h=From:To:Subject:In-Reply-To:References:Date; b=J9FmuYvIw7ANd5AjGPQy1Xtjg1VNhLuPsHT5BRBnbXFvxkaOpDVeURSvNDkDMASJn 0n1YPT8MLN42kca7DAV/FJ1cJKmIBVMLvZ6FF+qsm1WGaXsJrgVa86QQTZ2yfzOCa2 JVfVXZulz6fl/M/ljqJ/tVSzeYkRF73IVXx2EcRY= In-Reply-To: References: Message-Id: <5ef92e1aae4954fdf8180d17a434d0fca50e0eb0.1622735640.git.public@yoctocell.xyz> Date: Thu, 03 Jun 2021 17:58:09 +0200 MIME-Version: 1.0 Content-Type: text/plain 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622735968; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: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=BWX4al4+myj/t22Q1+qg4dfjPSbdYsLF1o4zR0ELyhc=; b=Um/EMgoicvn8eDKMr1fHC471rrxsZRSvjQUQw5LwBYmH76NSNWlz1SsuwQtMRXxGVAvza9 NcgS5CyzdczKn0NabXskJYIkCD8iMG0I8OMjzrtAmVbALiL7VmPR39+WQU32RaWF+sp3yE p7eWYuYbOPsQzGQluGMhlZaycrEzlyKQaUfalpN3naMUEOx0DLWG5kN2XycvCPaWF/2c7b NbdDytJo1431NT3Gd1Tr0DrkXEov/cy+fIUlpWrF+9LmOLrqaBkefpNcFHCyyFLNFStZlH fVBp6VbQV+Cn6+j5zBkVdRKDl99GdJu9H65Pd351LAosPBwtpt43CEZn0CVMaQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622735968; a=rsa-sha256; cv=none; b=n1FL3jhwzCzS1xMgZ0JJ6fAGR/yNZlBjrUvsQwbyj04WOoMQvnuhjPk3mB+/ChiZvNX8Ty AWO6hyfofKrqGz7sHeU9Uz5eke4cY4fA2dKHLn/ZoIrLyLe++XY5FG5bKxCzyBVHBz/shx 6BVdC7A3uis82+m/om5+1U2ovbdkmh86sgwDVRlJL9+sNzZnnzZgbxSyyzY3mFF3N7688+ 11ekB09WNYclJThX98W7Wwqq/tcsBAiYNBmPi+vQ615XWfRuES6cDHO/S8cCM2gjwaS8Y1 tbkHErwUjd53xeCG1CRf9906hPRatyrR9UFUxnkXxRzfukS8bdyF+mw42t5PQA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=J9FmuYvI; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 1.17 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=J9FmuYvI; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 590F62A589 X-Spam-Score: 1.17 X-Migadu-Scanner: scn0.migadu.com X-TUID: ljPdyDhZY9cT * gnu/packages/haskell-xyz.scm (ghc-data-tree-print): New variable. --- gnu/packages/haskell-xyz.scm | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index c2c6432adb..67ffdf0055 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -3078,6 +3078,45 @@ It includes hashing functions for all basic Haskell98 types.") "This module provides set and multiset operations on ordered lists.") (license license:bsd-3))) +(define-public ghc-data-tree-print + (package + (name "ghc-data-tree-print") + (version "0.1.0.2") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/data-tree-print/data-tree-print-" + version + ".tar.gz")) + (sha256 + (base32 + "00jh37anim8qsn553467gmfhajcz1c61zrgh1ypkqsll0gc29vy3")))) + (build-system haskell-build-system) + (inputs `(("ghc-syb" ,ghc-syb))) + (arguments + `(#:cabal-revision + ("2" + "00qpzhm3lndhpql8aj93aj6r3x9n0gw3nx6n0q60xxrd6agyjifq"))) + (home-page "https://github.com/lspitzner/data-tree-print") + (synopsis "Print Data instances as a nested tree") + (description "This package provides functionality similar to that of the +@code{Show} class: Taking some arbitrary value and returning a String. + +@itemize +@item +Output is not intended to be valid haskell. +@item +Requires a @code{Data.Data.Data} instance instead of a @code{Text.Show} one. +@item +Output, if large, is often easier to parse than @code{show} output due to the +formatting as a nested tree. +@item +The user can adapt the behaviour at runtime using custom layouting expressed +via syb-style extension. +@end itemize") + (license license:bsd-3))) + (define-public ghc-dbus (package (name "ghc-dbus") -- 2.31.1