From patchwork Thu Jun 3 15:58:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xinglu Chen X-Patchwork-Id: 29872 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B4F1F27BC81; Thu, 3 Jun 2021 16:59:27 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5301127BC78 for ; Thu, 3 Jun 2021 16:59:27 +0100 (BST) Received: from localhost ([::1]:50050 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lopkk-0008Eb-DO for patchwork@mira.cbaines.net; Thu, 03 Jun 2021 11:59:26 -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 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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")