From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id YIrGNRiflF/hWwAA0tVLHw (envelope-from ) for ; Sat, 24 Oct 2020 21:39:36 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id iHuTMRiflF+RbQAAbx9fmQ (envelope-from ) for ; Sat, 24 Oct 2020 21:39:36 +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 7E7039402A0 for ; Sat, 24 Oct 2020 21:39:36 +0000 (UTC) Received: from localhost ([::1]:35646 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kWRGB-0003QG-Dd for larch@yhetil.org; Sat, 24 Oct 2020 17:39:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45148) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kWRFe-00030O-BD for guix-patches@gnu.org; Sat, 24 Oct 2020 17:39:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52043) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kWRFe-00039i-1B for guix-patches@gnu.org; Sat, 24 Oct 2020 17:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kWRFd-0007RE-Uk for guix-patches@gnu.org; Sat, 24 Oct 2020 17:39:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44174] [PATCH 09/16] gnu: Add ghc-tabular. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 24 Oct 2020 21:39:01 +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: Carlo Holl Cc: 44174@debbugs.gnu.org Received: via spool by 44174-submit@debbugs.gnu.org id=B44174.160357550228541 (code B ref 44174); Sat, 24 Oct 2020 21:39:01 +0000 Received: (at 44174) by debbugs.gnu.org; 24 Oct 2020 21:38:22 +0000 Received: from localhost ([127.0.0.1]:35356 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kWRF0-0007QH-IJ for submit@debbugs.gnu.org; Sat, 24 Oct 2020 17:38:22 -0400 Received: from mira.cbaines.net ([212.71.252.8]:45416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kWREz-0007Q9-Fb for 44174@debbugs.gnu.org; Sat, 24 Oct 2020 17:38:21 -0400 Received: from localhost (92.41.179.191.threembb.co.uk [92.41.179.191]) by mira.cbaines.net (Postfix) with ESMTPSA id 40DED27BBF0; Sat, 24 Oct 2020 22:38:20 +0100 (BST) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 90c1ca77; Sat, 24 Oct 2020 21:38:17 +0000 (UTC) References: <20201023170544.9860-1-carloholl@gmail.com> <20201023170544.9860-9-carloholl@gmail.com> User-agent: mu4e 1.4.13; emacs 27.1 From: Christopher Baines In-reply-to: <20201023170544.9860-9-carloholl@gmail.com> Date: Sat, 24 Oct 2020 22:38:15 +0100 Message-ID: <873623b8zc.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) 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 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: -0.61 X-TUID: A92ADaqyH8nu --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Carlo Holl writes: > --- > 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 n= ot simply reuse String, > increasing type safety.") > (license license:expat))) >=20=20 > +(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))) I'd put each input on it's own line. > + (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 > +=3D=3D=3D=3D++=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D++=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > +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))) I'm not sure if this is semantically the best option, but if you put @verbatim before this table, and @end verbatim after it, it should display correctly in ./pre-inst-env guix show ghc-tabular at least. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl+UnsdfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9Xdhrg/+MA+D0KO69aZRCYTY/GcnDmaavyLoCIIY 9MBjUt8udvdcuouaCVfscql0kwxiLnQY9DaXN9cwyEbD380HCrm9KM6OuRc45n9X V2uYOzIEmofL+J8XYxcgqhdBHHrCctKhPkUb71V1x3nNYuXecBmIqLs7t9tc0nOl 7AgYmymDrbwhU1wgXLAx0K9eiaae+rAzfbVKl0kIThwVv1+WHa8IHPLCRg5aXOP1 6S6kJsMsa7WHEw9mplN6f7Cz0cbNkvfBbBZ1hDFxcnb1Tj/Poql4V0ou9VWTB7lE Qv6DehKSHW7T+j5Y+iUFW33j1Pj5QVbEQ3hqsGlz+12eTCJ34T6refBCAp7wbK80 J37fb/Jnh7eWgJsoAzQHwWVYAreC6Ez2j/x6/jItY4C34xpNh05vneET3M1L7A74 inzFsNvt98+fqYyW/FfKtTrB5dKBIgba+bmFhtwN7K6BTwK+oJBNhxV/YaliSOZP MP5w9A+qjpqkemBSA7OOKdu0R0ydw9jcIsiEqKnIK22ap9C7VnTN4Yi7/hTJh8Zm zDZTIg47zVvkMD35eQFwf7ACSDLfowvA72ARzbG5Xs8bCxfDcHIkgMMWqY3UJyRV ULB/0+R0OpfnYP8CDiT65MeSXKoXBx6YMG8OSf3ikEyWYkGUujZ4LuN/cIVORkyF 07DcJe2k88I= =lROI -----END PGP SIGNATURE----- --=-=-=--