From b618422a83b120679357029c7a1428163a9c42e4 Mon Sep 17 00:00:00 2001 From: John Soo Date: Sun, 7 Jul 2019 17:52:53 -0700 Subject: [PATCH 08/13] gnu: Add ghc-listlike. --- gnu/packages/haskell.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index fa3063c684..dfd5981f39 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -2931,6 +2931,42 @@ fusion with lazy lists in the package http://hackage.haskell.org/package/storablevector-streamfusion.") (license license:bsd-3))) +(define-public ghc-listlike + (package + (name "ghc-listlike") + (version "4.6.2") + (source + (origin + (method url-fetch) + (uri + (string-append + "https://hackage.haskell.org/package/ListLike/ListLike-" + version ".tar.gz")) + (sha256 + (base32 + "0m65x8yaq7q50gznln8mga2wrc8cvjx6gw9rim8s7xqcrx6y5zjh")))) + (build-system haskell-build-system) + (inputs + `(("ghc-vector" ,ghc-vector) + ("ghc-dlist" ,ghc-dlist) + ("ghc-fmlist" ,ghc-fmlist) + ("ghc-utf8-string" ,ghc-utf8-string))) + (arguments `(#:tests? #f)) + (home-page "https://github.com/JohnLato/listlike") + (synopsis "Generic support for list-like structures") + (description + "Generic support for list-like structures in Haskell. + +The ListLike module provides a common interface to the various Haskell types +that are list-like. Predefined interfaces include standard Haskell lists, +Arrays, ByteStrings, and lazy ByteStrings. Custom types can easily be made +ListLike instances as well. + +ListLike also provides for String-like types, such as String and ByteString, +for types that support input and output, and for types that can handle +infinite lists.") + (license license:bsd-3))) + (define-public ghc-transformers-compat (package (name "ghc-transformers-compat") -- 2.22.0