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 EPsuKjklnl+HSgAA0tVLHw (envelope-from ) for ; Sun, 01 Nov 2020 03:02:17 +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 MAHWJTklnl8HdwAAB5/wlQ (envelope-from ) for ; Sun, 01 Nov 2020 03:02:17 +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 62DC49403A0 for ; Sun, 1 Nov 2020 03:02:17 +0000 (UTC) Received: from localhost ([::1]:57612 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZ3dI-0001tj-BC for larch@yhetil.org; Sat, 31 Oct 2020 23:02:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35540) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZ3cA-00014S-3w for guix-patches@gnu.org; Sat, 31 Oct 2020 23:01:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51935) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kZ3c9-000856-N1 for guix-patches@gnu.org; Sat, 31 Oct 2020 23:01:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kZ3c9-00015F-Kd for guix-patches@gnu.org; Sat, 31 Oct 2020 23:01:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44174] [PATCH v2 09/15] gnu: Add ghc-tabular. Resent-From: Carlo Holl Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 01 Nov 2020 03:01: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.16041996544044 (code B ref 44174); Sun, 01 Nov 2020 03:01:05 +0000 Received: (at 44174) by debbugs.gnu.org; 1 Nov 2020 03:00:54 +0000 Received: from localhost ([127.0.0.1]:35228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZ3bx-000133-RX for submit@debbugs.gnu.org; Sat, 31 Oct 2020 23:00:54 -0400 Received: from mail-pf1-f175.google.com ([209.85.210.175]:42266) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZ2ii-0007vS-Ig for 44174@debbugs.gnu.org; Sat, 31 Oct 2020 22:03:48 -0400 Received: by mail-pf1-f175.google.com with SMTP id x13so8160621pfa.9 for <44174@debbugs.gnu.org>; Sat, 31 Oct 2020 19:03:48 -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=jLnmM0dEt2Ava7l5OIehwz2pkbFyEhEo3doGkKD7pBE=; b=eh2vmvMEjCqzWY9N7WTsl4T5sA2U35M6S3KK+emQKdmdMEBsjpM3KmR3Xgkh0uihEQ 0zasw9Cm4WGVXZDMnsRYet5bhFnet+lNMWKsF4xJfJubm91SEeG4mieFg2z8+hKa0Iwh 05VunPPKXaV6k7yLXP8e0Eu5fqJcYd0tHyAfFFs9knDq9ssq2kxBqhu6KnMgI7Adj61l NTFNi2S8XxHUDCEWPU70vrx8OufiKty09scJBQD2jrGLTVwRFartZE5H5XWsENyQiFCJ d3lAj6eFWMjVGfPGNasZDUHBto31MCnHxZjj0G6K6OzgER/wGYdU8LBNHkdKOuiJfZXM HOhg== 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=jLnmM0dEt2Ava7l5OIehwz2pkbFyEhEo3doGkKD7pBE=; b=PUAHJ7KzWyBzjBeIDB+8l//dh2At607QNKOkvMyZEcodVb2xSQg8mbq+n1Y1xGS1iW RIQVLkZBtBbv2wtY+z1yX/vQIiJAWRY5LOidk8stFesJSPK/YL2w8VgDkABxIMLJYKyX q0DLnzUddwBEvIt7oYe3yQcwmylPKURm9W3Ch9An1WEIzJeTwQUOOzOoBPOzjMHcr1nG BzuQNb8SRIg8cRcPpyurajZC4sJGXZnobe8UkJ7Ob2nDPoj0VeiK3XdKCcsa01psmECO WlY0yLWfpt3FusxShv46oQxqtSqGc93lJY1S9p0duuflqAFPgQ8ONHY57XHuDryYKGyk CqHQ== X-Gm-Message-State: AOAM530okJ0FcGNxvjMqq6DK78zIux9iAAJQ5pGd9cziKZitMW9QnM4J TgPtv0SZfwLvj2EAMk9yjqtNHFbqUAQ= X-Google-Smtp-Source: ABdhPJzRNexWWWIXjIsL+7zA5C3iA4QJmDNIcjjIeaKw5RR2vHdd4re9xD+MhMXY/1CREuy8m/oJtg== X-Received: by 2002:aa7:9a04:0:b029:163:fe2a:9e04 with SMTP id w4-20020aa79a040000b0290163fe2a9e04mr16465503pfj.30.1604196222670; Sat, 31 Oct 2020 19:03:42 -0700 (PDT) Received: from cehdev.hsd1.ca.comcast.net ([2603:3024:1704:300::8401]) by smtp.gmail.com with ESMTPSA id n27sm3051213pfq.59.2020.10.31.19.03.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 Oct 2020 19:03:42 -0700 (PDT) From: Carlo Holl Date: Sat, 31 Oct 2020 19:02:30 -0700 Message-Id: <20201101020236.1108-10-carloholl@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201101020236.1108-1-carloholl@gmail.com> References: <20201101020236.1108-1-carloholl@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Sat, 31 Oct 2020 23:00:46 -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: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=eh2vmvME; 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-Score: 5.09 X-TUID: gRO8JFgWJO0r * gnu/packages/haskell-xyz.scm (ghc-tabular): New variable. --- gnu/packages/haskell-xyz.scm | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index 7b49cac093..97d83ad886 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -12798,6 +12798,50 @@ 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. + +@example + + || 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 + +@end example") + (license license:bsd-3))) (define-public ghc-tagged (package -- 2.28.0