unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Carlo Holl <carloholl@gmail.com>
To: 44174@debbugs.gnu.org
Cc: Carlo Holl <carloholl@gmail.com>
Subject: [bug#44174] [PATCH v2 12/15] gnu: Add ghc-cassava.
Date: Sat, 31 Oct 2020 19:02:33 -0700	[thread overview]
Message-ID: <20201101020236.1108-13-carloholl@gmail.com> (raw)
In-Reply-To: <20201101020236.1108-1-carloholl@gmail.com>

* gnu/packages/haskell-xyz.scm (ghc-cassava): New variable.
---
 gnu/packages/haskell-xyz.scm | 89 ++++++++++++++++++++++++++++++++++++
 1 file changed, 89 insertions(+)

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index 210df9775c..6f5b6c3253 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -1552,6 +1552,95 @@ constructor which can be parameterised by a string-like type like:
 the resulting type will be insensitive to cases.")
     (license license:bsd-3)))
 
+(define-public ghc-cassava
+  (package
+    (name "ghc-cassava")
+    (version "0.5.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://hackage.haskell.org/package/cassava/cassava-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "01h1zrdqb313cjd4rqm1107azzx4czqi018c2djf66a5i7ajl3dk"))))
+    (build-system haskell-build-system)
+    (inputs
+     `(("ghc-attoparsec" ,ghc-attoparsec)
+       ("ghc-hashable" ,ghc-hashable)
+       ("ghc-scientific" ,ghc-scientific)
+       ("ghc-unordered-containers"
+        ,ghc-unordered-containers)
+       ("ghc-vector" ,ghc-vector)
+       ("ghc-only" ,ghc-only)
+       ("ghc-text-short" ,ghc-text-short)
+       ("ghc-bytestring-builder"
+        ,ghc-bytestring-builder)))
+    (native-inputs
+     `(("ghc-hunit" ,ghc-hunit)
+       ("ghc-quickcheck" ,ghc-quickcheck)
+       ("ghc-quickcheck-instances"
+        ,ghc-quickcheck-instances)
+       ("ghc-test-framework" ,ghc-test-framework)
+       ("ghc-test-framework-hunit"
+        ,ghc-test-framework-hunit)
+       ("ghc-test-framework-quickcheck2"
+        ,ghc-test-framework-quickcheck2)))
+    (arguments
+     `(#:cabal-revision
+       ("1"
+        "1ph8rf91z4nf1ryrh9s4gd1kq98jlgk2manwddkpch8k0n9xvfk4")
+       #:configure-flags '("--flags=-bytestring--lt-0_10_4")))
+    (home-page "https://github.com/haskell-hvr/cassava")
+    (synopsis "CSV parsing and encoding library")
+    (description "@code{cassava} is a library for parsing and encoding
+@url{https://tools.ietf.org/html/rfc4180, RFC 4180} compliant @url{https://
+en.wikipedia.org/wiki/Comma-separated_values, comma-separated values (CSV)}
+data, which is a textual line-oriented format commonly used for exchanging
+tabular data.
+
+@code{cassava}'s API includes support for
+
+@itemize @bullet
+
+@item
+Index-based record-conversion
+@item
+Name-based record-conversion
+@item
+Typeclass directed conversion of fields and records
+@item
+Built-in field-conversion instances for standard types
+@item
+Customizable record-conversion instance derivation via GHC generics
+@item
+Low-level @url{https://hackage.haskell.org/package/bytestring), bytestring}
+builders (see @url{https://hackage.haskell.org/package/cassava-0.5.2.0/docs/
+Data-Csv-Builder.html, Data.Csv.Builder})
+@item
+Incremental decoding and encoding API (see @url{https://hackage.haskell.org/
+package/cassava-0.5.2.0/docs/Data-Csv-Incremental.html, Data.Csv.Incremental})
+@item
+Streaming API for constant-space decoding (see @url{https://hackage.haskell.org/
+package/cassava-0.5.2.0/docs/Data-Csv-Streaming.html, Data.Csv.Streaming})
+@end itemize
+
+Moreover, this library is designed to be easy to use; for instance, here's a
+very simple example of encoding CSV data:
+
+@verbatim
+>>> Data.Csv.encode [(\"John\",27),(\"Jane\",28)]
+\"John,27\r\nJane,28\r\n\"
+@end verbatim
+
+Please refer to the documentation in @url{https://hackage.haskell.org/package/
+cassava-0.5.2.0/docs/Data-Csv.html, Data.Csv} and the included @url{https://
+hackage.haskell.org/package/cassava-0.5.2.0/#readme, README} for more usage
+examples.")
+    (license license:bsd-3)))
+
 (define-public ghc-cborg
   (package
     (name "ghc-cborg")
-- 
2.28.0





  parent reply	other threads:[~2020-11-01  3:02 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-23  7:46 [bug#44174] [PATCH 00/16] Add hledger and its dependencies Carlo Holl
2020-10-23 17:05 ` [bug#44174] [PATCH 01/16] gnu: Add ghc-control-monad-free Carlo Holl
2020-10-23 17:05   ` [bug#44174] [PATCH 02/16] gnu: Add ghc-csv Carlo Holl
2020-10-24 21:27     ` Christopher Baines
2020-10-23 17:05   ` [bug#44174] [PATCH 03/16] gnu: Add ghc-decimal Carlo Holl
2020-10-23 17:05   ` [bug#44174] [PATCH 04/16] gnu: Upgrade ghc-doctest Carlo Holl
2020-10-24 21:29     ` Christopher Baines
2020-10-23 17:05   ` [bug#44174] [PATCH 05/16] gnu: Add ghc-hspec-megaparsec Carlo Holl
2020-10-24 21:30     ` Christopher Baines
2020-10-23 17:05   ` [bug#44174] [PATCH 06/16] gnu: Add ghc-lucid Carlo Holl
2020-10-23 17:05   ` [bug#44174] [PATCH 07/16] gnu: Add ghc-only Carlo Holl
2020-10-23 17:05   ` [bug#44174] [PATCH 08/16] gnu: Add ghc-text-short Carlo Holl
2020-10-23 17:05   ` [bug#44174] [PATCH 09/16] gnu: Add ghc-tabular Carlo Holl
2020-10-24 21:38     ` Christopher Baines
2020-10-23 17:05   ` [bug#44174] [PATCH 10/16] gnu: Add ghc-uglymemo Carlo Holl
2020-10-23 17:05   ` [bug#44174] [PATCH 11/16] gnu: Add ghc-wizards Carlo Holl
2020-10-23 17:05   ` [bug#44174] [PATCH 12/16] gnu: Add ghc-cassava Carlo Holl
2020-10-23 17:05   ` [bug#44174] [PATCH 13/16] gnu: Add ghc-cassava-megaparsec Carlo Holl
2020-10-24 21:39     ` Christopher Baines
2020-10-23 17:05   ` [bug#44174] [PATCH 14/16] gnu: Add ghc-hledger-lib Carlo Holl
2020-10-23 17:05   ` [bug#44174] [PATCH 15/16] gnu: Add hledger Carlo Holl
2020-10-23 17:05   ` [bug#44174] [PATCH 16/16] Add attribution Carlo Holl
2020-10-24 21:40     ` Christopher Baines
2020-10-24 21:26 ` [bug#44174] [PATCH 00/16] Add hledger and its dependencies Christopher Baines
2020-11-01  2:11   ` Carlo Holl
2020-11-01  2:02 ` [bug#44174] [PATCH v2 00/15] " Carlo Holl
2020-11-01  2:02   ` [bug#44174] [PATCH v2 01/15] gnu: Add ghc-control-monad-free Carlo Holl
2020-11-01  2:02   ` [bug#44174] [PATCH v2 02/15] gnu: Add ghc-csv Carlo Holl
2020-11-01  2:02   ` [bug#44174] [PATCH v2 03/15] gnu: Add ghc-decimal Carlo Holl
2020-11-01  2:02   ` [bug#44174] [PATCH v2 04/15] gnu: ghc-doctest: Update to 0.16.3 Carlo Holl
2020-11-01  2:02   ` [bug#44174] [PATCH v2 05/15] gnu: Add ghc-hspec-megaparsec Carlo Holl
2020-11-01  2:02   ` [bug#44174] [PATCH v2 06/15] gnu: Add ghc-lucid Carlo Holl
2020-11-01  2:02   ` [bug#44174] [PATCH v2 07/15] gnu: Add ghc-only Carlo Holl
2020-11-01  2:02   ` [bug#44174] [PATCH v2 08/15] gnu: Add ghc-text-short Carlo Holl
2020-11-01  2:02   ` [bug#44174] [PATCH v2 09/15] gnu: Add ghc-tabular Carlo Holl
2020-11-01  2:02   ` [bug#44174] [PATCH v2 10/15] gnu: Add ghc-uglymemo Carlo Holl
2020-11-01  2:02   ` [bug#44174] [PATCH v2 11/15] gnu: Add ghc-wizards Carlo Holl
2020-11-01  2:02   ` Carlo Holl [this message]
2020-11-01  2:02   ` [bug#44174] [PATCH v2 13/15] gnu: Add ghc-cassava-megaparsec Carlo Holl
2020-11-01  2:02   ` [bug#44174] [PATCH v2 14/15] gnu: Add ghc-hledger-lib Carlo Holl
2020-11-01  2:02   ` [bug#44174] [PATCH v2 15/15] gnu: Add hledger Carlo Holl
2020-11-01 13:38   ` bug#44174: [PATCH v2 00/15] Add hledger and its dependencies Christopher Baines
2020-11-01 18:22     ` [bug#44174] " Ricardo Wurmus
2020-11-01 21:09       ` Carlo Holl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201101020236.1108-13-carloholl@gmail.com \
    --to=carloholl@gmail.com \
    --cc=44174@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).