From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id kBw2O0oSk1+nSQAA0tVLHw (envelope-from ) for ; Fri, 23 Oct 2020 17:26:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id IEQFN0oSk190HgAAB5/wlQ (envelope-from ) for ; Fri, 23 Oct 2020 17:26:34 +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 B00429403A0 for ; Fri, 23 Oct 2020 17:26:34 +0000 (UTC) Received: from localhost ([::1]:60124 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kW0pl-00049f-Ky for larch@yhetil.org; Fri, 23 Oct 2020 13:26:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34098) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kW0pJ-0003Uj-OY for guix-patches@gnu.org; Fri, 23 Oct 2020 13:26:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46755) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kW0pJ-0000Q3-Fl for guix-patches@gnu.org; Fri, 23 Oct 2020 13:26:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kW0pJ-0000FD-CU for guix-patches@gnu.org; Fri, 23 Oct 2020 13:26:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44174] [PATCH 09/16] gnu: Add ghc-tabular. Resent-From: Carlo Holl Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Oct 2020 17:26:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 44174@debbugs.gnu.org Cc: Carlo Holl Received: via spool by 44174-submit@debbugs.gnu.org id=B44174.1603473947807 (code B ref 44174); Fri, 23 Oct 2020 17:26:05 +0000 Received: (at 44174) by debbugs.gnu.org; 23 Oct 2020 17:25:47 +0000 Received: from localhost ([127.0.0.1]:58279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kW0p1-0000Cp-Bt for submit@debbugs.gnu.org; Fri, 23 Oct 2020 13:25:47 -0400 Received: from mail-pf1-f182.google.com ([209.85.210.182]:41814) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kW0W7-00085T-Fk for 44174@debbugs.gnu.org; Fri, 23 Oct 2020 13:06:15 -0400 Received: by mail-pf1-f182.google.com with SMTP id c20so1816225pfr.8 for <44174@debbugs.gnu.org>; Fri, 23 Oct 2020 10:06:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HgfZmyERQgZtrMnKJGgjB7ACNZL+5FMCmOWa1YENdtM=; b=PKGHhztbnk1//H1rUJmyPbOhNaJt7Biv0RdXBZXxb7fKLYzhtPtDpru7HuZcvkU2sa aR5jipzrzlZDAAWEOiyt4sDE2jaYVmltwuxe2uwYZilH18lwxMBuREjJQon9DTmRlya/ ARU4p3eBQt57UGOkFqc0gsm8DleNZitCAygzpCuAbR9mce0po4Zwvb0gGLFw00A/6pQ5 bWP9cSM/i2ZFeGvCX9UOA43OBzG6FSWYEx7uaEcqSQYJK5jXB4xgxWwan3fRgllXDFhp NXMReM8huRRfEF1EFUhcszvZkPUxvRHP2S6O2ZrhXw3Y46HG7xxeOTdI2sALjYGpV44U uldQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HgfZmyERQgZtrMnKJGgjB7ACNZL+5FMCmOWa1YENdtM=; b=i7t9699sxXZoolwCKVA9xfyq86/LrFV8JK2E6dyWIM636MKL/w1gwKSBc3svgqPnhO sokzGRa0F2LP20neOGAfUxUxAMAGtspNhVA55uyv6JpBTJIOYjAJMf9ix1Xb9GwsZz4Q k+NMIKwtBFU0YramIiD+/f8YwI9nCfMVglYagy6iswfRTdZxoroDQnKxpML+GfEwiiNw Z9oI9ygn1/WalZWVuLGda+EpXs4GLTubxBlDEet7aXYj8k06xWS81LsJ1w7HyBsAGG6L eXJVSY2EuvlTQEW8ydCBCdTJV5JNGH5rKUoCFMIDFWvlW23ydUi2NkO1NIkCz7eM6fNd H+3w== X-Gm-Message-State: AOAM53328TTqMf3z6VHN7sTSQiu3SUmqgq7eb2IeRIcSUXWv9IQZcjEW rnq/mkoQupueavd8s706t0kiw0d1NDc= X-Google-Smtp-Source: ABdhPJzhPyHBVc/szRG6q9Rzm0ObMXlF707bYIs3N5f8c0Rc2ZcH/V8jSMHuVBC8k4ABzd+6qe8JXQ== X-Received: by 2002:a05:6a00:2a5:b029:152:5652:7191 with SMTP id q5-20020a056a0002a5b029015256527191mr3104163pfs.7.1603472769543; Fri, 23 Oct 2020 10:06:09 -0700 (PDT) Received: from cehdev.hsd1.ca.comcast.net ([2603:3024:1704:300::7ae9]) by smtp.gmail.com with ESMTPSA id q10sm2976825pjd.6.2020.10.23.10.06.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Oct 2020 10:06:08 -0700 (PDT) From: Carlo Holl Date: Fri, 23 Oct 2020 10:05:37 -0700 Message-Id: <20201023170544.9860-9-carloholl@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201023170544.9860-1-carloholl@gmail.com> References: <20201023170544.9860-1-carloholl@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Fri, 23 Oct 2020 13:25:42 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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-Scanner: scn0 X-Spam-Score: 6.59 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=PKGHhztb; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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-Spam: Yes X-TUID: exOH7NPdfOzh --- gnu/packages/haskell-xyz.scm | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index c4a8d4c208..0cce72e9f5 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -12813,6 +12813,46 @@ Unlike the filepath package, this package does not simply reuse String, increasing type safety.") (license license:expat))) +(define-public ghc-tabular + (package + (name "ghc-tabular") + (version "0.2.2.8") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/tabular/tabular-" + version + ".tar.gz")) + (sha256 + (base32 + "0z936gh8n8i8qdkagyxwd9gqq13skd5fv013vdvwsibrxkm0czfb")))) + (build-system haskell-build-system) + (inputs + `(("ghc-csv" ,ghc-csv) ("ghc-html" ,ghc-html))) + (home-page "https://github.com/bgamari/tabular") + (synopsis + "Two-dimensional data tables with rendering functions") + (description "Tabular provides a Haskell representation of +two-dimensional data tables, the kind that you might find in a +spreadsheet or or a research report. It also comes with some +default rendering functions for turning those tables into ASCII +art, simple text with an arbitrary delimiter, CSV, HTML or LaTeX. + +Below is an example of the kind of output this library produces. +The tabular package can group rows and columns, each group having +one of three separators (no line, single line, double line) between +its members. + + || memtest 1 | memtest 2 || time test | time test 2 +====++===========+===========++=============+============ +A 1 || hog | terrible || slow | slower +A 2 || pig | not bad || fast | slowest +----++-----------+-----------++-------------+------------ +B 1 || good | awful || intolerable | bearable +B 2 || better | no chance || crawling | amazing +B 3 || meh | well... || worst ever | ok") + (license license:bsd-3))) (define-public ghc-tagged (package -- 2.28.0