[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/15: gnu: Add ghc-tabular.
From: |
guix-commits |
Subject: |
09/15: gnu: Add ghc-tabular. |
Date: |
Sun, 1 Nov 2020 08:36:12 -0500 (EST) |
cbaines pushed a commit to branch master
in repository guix.
commit 094a9d7ac490e5b745deb0a8be050d6572f71a60
Author: Carlo Holl <carloholl@gmail.com>
AuthorDate: Sat Oct 31 19:02:30 2020 -0700
gnu: Add ghc-tabular.
* gnu/packages/haskell-xyz.scm (ghc-tabular): New variable.
Signed-off-by: Christopher Baines <mail@cbaines.net>
---
gnu/packages/haskell-xyz.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index cb24940..71cf860 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -12798,6 +12798,49 @@ 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
- branch master updated (9e775fa -> e6bfb02), guix-commits, 2020/11/01
- 02/15: gnu: Add ghc-csv., guix-commits, 2020/11/01
- 01/15: gnu: Add ghc-control-monad-free., guix-commits, 2020/11/01
- 07/15: gnu: Add ghc-only., guix-commits, 2020/11/01
- 06/15: gnu: Add ghc-lucid., guix-commits, 2020/11/01
- 13/15: gnu: Add ghc-cassava-megaparsec., guix-commits, 2020/11/01
- 11/15: gnu: Add ghc-wizards., guix-commits, 2020/11/01
- 03/15: gnu: Add ghc-decimal., guix-commits, 2020/11/01
- 05/15: gnu: Add ghc-hspec-megaparsec., guix-commits, 2020/11/01
- 04/15: gnu: ghc-doctest: Update to 0.16.3., guix-commits, 2020/11/01
- 09/15: gnu: Add ghc-tabular.,
guix-commits <=
- 14/15: gnu: Add ghc-hledger-lib., guix-commits, 2020/11/01
- 08/15: gnu: Add ghc-text-short., guix-commits, 2020/11/01
- 12/15: gnu: Add ghc-cassava., guix-commits, 2020/11/01
- 10/15: gnu: Add ghc-uglymemo., guix-commits, 2020/11/01
- 15/15: gnu: Add hledger., guix-commits, 2020/11/01