[PATCH 1/6] gnu: Add ghc-quickcheck-2.9.

  • Done
  • quality assurance status badge
Details
2 participants
  • Ludovic Courtès
  • Tonton
Owner
unassigned
Submitted by
Tonton
Severity
normal

Debbugs page

T
T
Tonton wrote on 11 May 2018 13:29
(address . guix-patches@gnu.org)(name . Tonton)(address . tonton@riseup.net)
20180511202932.29395-1-tonton@riseup.net
* gnu/packages/haskell-check.scm (ghc-quickcheck-2.9): New variable.
---
gnu/packages/haskell-check.scm | 14 ++++++++++++++
1 file changed, 14 insertions(+)

Toggle diff (34 lines)
diff --git a/gnu/packages/haskell-check.scm b/gnu/packages/haskell-check.scm
index 6b1d76931..7453f9fbf 100644
--- a/gnu/packages/haskell-check.scm
+++ b/gnu/packages/haskell-check.scm
@@ -8,6 +8,7 @@
;;; Copyright © 2017 Danny Milosavljevic <dannym@scratchpost.org>
;;; Copyright © 2017 rsiddharth <s@ricketyspace.net>
;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2018 Tonton <tonton@riseup.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -451,6 +452,19 @@ hold in a large number of randomly generated cases. Specifications are
expressed in Haskell, using combinators defined in the QuickCheck library.")
(license license:bsd-3)))
+(define-public ghc-quickcheck-2.9
+ (package
+ (inherit ghc-quickcheck)
+ (name "ghc-quickcheck")
+ (version "2.9.2")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://hackage.haskell.org/package/QuickCheck-2.9.2/QuickCheck-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "119np67qvx8hyp9vkg4gr2wv3lj3j6ay2vl4hxspkg43ymb1cp0m"))))))
+
(define-public ghc-quickcheck-latest
(package (inherit ghc-quickcheck)
(version "2.11.3")
--
2.17.0
T
T
Tonton wrote on 11 May 2018 13:34
[PATCH 2/6] gnu: Add ghc-array.
(name . Tonton)(address . tonton@riseup.net)
20180511203408.29491-1-tonton@riseup.net
* gnu/packages/haskell.scm (ghc-array): New variable.
---
gnu/packages/haskell.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)

Toggle diff (42 lines)
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 9b26ff56f..67faeb852 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -13,6 +13,7 @@
;;; Copyright © 2017, 2018 Alex Vong <alexvong1995@gmail.com>
;;; Copyright © 2017 rsiddharth <s@ricketyspace.net>
;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2018 Tonton <tonton@riseup.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -9466,4 +9467,27 @@ system dependencies.")
address string against RFC 5322.")
(license license:bsd-3)))
+(define-public ghc-array
+ (package
+ (name "ghc-array")
+ (version "0.5.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://hackage.haskell.org/package/array-0.5.2.0/array-"
+ version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "12v83s2imxb3p2crnlzrpjh0nk6lpysw9bdk9yahs6f37csa5jaj"))))
+ (build-system haskell-build-system)
+ (synopsis "Haskell Data.Array module")
+ (description "In addition to providing the Data.Array module as
+specified in the Haskell 2010 Language Report, this package also defines
+the classes IArray of immutable arrays and MArray of arrays mutable
+within appropriate monads, as well as some instances of these classes.")
+ (home-page "https://hackage.haskell.org/package/array")
+ (license license:bsd-3)))
+
;;; haskell.scm ends here
--
2.17.0
T
T
Tonton wrote on 11 May 2018 13:34
[PATCH 3/6] gnu: Add ghc-containers.
(name . Tonton)(address . tonton@riseup.net)
20180511203408.29491-2-tonton@riseup.net
* gnu/packages/haskell.scm (ghc-containers): New variable.
---
gnu/packages/haskell.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)

Toggle diff (42 lines)
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 67faeb852..dd9d2f15d 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -9490,4 +9490,35 @@ within appropriate monads, as well as some instances of these classes.")
(home-page "https://hackage.haskell.org/package/array")
(license license:bsd-3)))
+(define-public ghc-containers
+ (package
+ (name "ghc-containers")
+ (version "0.5.11.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://hackage.haskell.org/package/containers-0.5.11.0/containers-"
+ version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0j29w09kvcn1c0yi4clmrdbgs2gqmpxs2m7q80ib2ix1smm25kaq"))))
+ (build-system haskell-build-system)
+ (inputs `(("ghc-array" ,ghc-array)
+ ("ghc-deepseq" ,ghc-deepseq-generics)
+ ("ghc-hunit" ,ghc-hunit)
+ ("ghc-chasingbottoms" ,ghc-chasingbottoms)
+ ("ghc-test-framework" ,ghc-test-framework)
+ ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
+ ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
+ ("ghc-quickcheck" ,ghc-quickcheck)
+ ("ghc-ghc-prim" ,ghc-primitive)))
+ (synopsis "Haskell containers: Assorted concrete container types")
+ (description "Haskell module providing efficient general-purpose
+implementations of various immutable container types including sets,
+maps, sequences, trees, and graphs.")
+ (home-page "https://hackage.haskell.org/package/containers")
+ (license license:bsd-3)))
+
;;; haskell.scm ends here
--
2.17.0
T
T
Tonton wrote on 11 May 2018 13:34
[PATCH 4/6] gnu: Add ghc-binary.
(name . Tonton)(address . tonton@riseup.net)
20180511203408.29491-3-tonton@riseup.net
* gnu/packages/haskell.scm (ghc-binary): New variable.
---
gnu/packages/haskell.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)

Toggle diff (45 lines)
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index dd9d2f15d..d8128422e 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -9521,4 +9521,38 @@ maps, sequences, trees, and graphs.")
(home-page "https://hackage.haskell.org/package/containers")
(license license:bsd-3)))
+(define-public ghc-binary
+ (package
+ (name "ghc-binary")
+ (version "0.8.5.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://hackage.haskell.org/package/binary-0.8.5.1/binary-"
+ version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "15h5zqfw7xmcimvlq6bs8f20vxlfvz7g411fns5z7212crlimffy"))))
+ (build-system haskell-build-system)
+ (inputs `(("ghc-bytestring" ,ghc-bytestring-builder)
+ ("ghc-array" ,ghc-array)
+ ("ghc-ghc-prim" ,ghc-primitive)
+ ("ghc-hunit" ,ghc-hunit)
+ ("ghc-quickcheck" ,ghc-quickcheck-2.9)
+ ("ghc-test-framework" ,ghc-test-framework)
+ ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2-w-qc-2.9)
+ ("ghc-containers" ,ghc-containers)))
+ (synopsis "Haskell binary serialisation using lazy ByteStrings")
+ (description "Efficient, pure binary serialisation using lazy
+ByteStrings. Haskell values may be encoded to and from binary formats,
+written to disk as binary, or sent over the network. The format used can
+be automatically generated, or you can choose to implement a custom
+format if needed. Serialisation speeds of over 1 G/sec have been
+observed, so this library should be suitable for high performance
+scenarios.")
+ (home-page "https://hackage.haskell.org/package/binary")
+ (license license:bsd-3)))
+
;;; haskell.scm ends here
--
2.17.0
T
T
Tonton wrote on 11 May 2018 13:34
[PATCH 5/6] gnu: Add ghc-semigroupoids-5.2.2
(name . Tonton)(address . tonton@riseup.net)
20180511203408.29491-4-tonton@riseup.net
* gnu/packages/haskell.scm (ghc-semigroupoids-5.2.2): New variable.
---
gnu/packages/haskell.scm | 15 +++++++++++++++
1 file changed, 15 insertions(+)

Toggle diff (26 lines)
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index d8128422e..2429fdbe5 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -9555,4 +9555,19 @@ scenarios.")
(home-page "https://hackage.haskell.org/package/binary")
(license license:bsd-3)))
+(define-public ghc-semigroupoids-5.2.2
+ (package
+ (inherit ghc-semigroupoids)
+ (name "ghc-semigroupoids")
+ (version "5.2.2")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://hackage.haskell.org/package/semigroupoids-5.2.2/semigroupoids-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "17i96y4iqj8clcs090lf6k0ij3j16nj14vsfwz0mm9nd6i4gbpp4"))))
+ (inputs `(("ghc-unordered-containers" ,ghc-unordered-containers)
+ ,@(package-inputs ghc-semigroupoids)))))
+
;;; haskell.scm ends here
--
2.17.0
T
T
Tonton wrote on 11 May 2018 13:34
[PATCH 6/6] gnu: Add ghc-bytes.
(name . Tonton)(address . tonton@riseup.net)
20180511203408.29491-5-tonton@riseup.net
* gnu/packages/haskell.scm (ghc-bytes): New variable.
---
gnu/packages/haskell.scm | 44 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)

Toggle diff (55 lines)
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 2429fdbe5..94a81b2fd 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -9570,4 +9570,48 @@ scenarios.")
(inputs `(("ghc-unordered-containers" ,ghc-unordered-containers)
,@(package-inputs ghc-semigroupoids)))))
+(define-public ghc-bytes
+ (package
+ (name "ghc-bytes")
+ (version "0.15.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://hackage.haskell.org/package/bytes-"
+ version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "121x3iqlm8pghw8cd9g30cnqbl7jrdpfjxdanmqdqllajw6xivrm"))))
+ (build-system haskell-build-system)
+ (inputs `(("ghc-binary" ,ghc-binary)
+ ("ghc-bytestring" ,ghc-bytestring-builder)
+ ("ghc-transformers" ,ghc-transformers-base)
+ ("ghc-cereal" ,ghc-cereal)
+ ("ghc-containers" ,ghc-containers)
+ ("cabal-doctest" ,cabal-doctest)
+ ("ghc-doctest" ,ghc-doctest-0.13)
+ ("ghc-ghc-prim" ,ghc-primitive)
+ ("ghc-hashable" ,ghc-hashable)
+ ("ghc-lens" ,ghc-lens)
+ ("ghc-mtl" ,ghc-mtl)
+ ("ghc-reflection" ,ghc-reflection)
+ ("ghc-semigroups" ,ghc-semigroups)
+ ("ghc-semigroupoids" ,ghc-semigroupoids-5.2.2)
+ ("ghc-scientific" ,ghc-scientific)
+ ("ghc-simple-reflect" ,ghc-simple-reflect)
+ ("ghc-text" ,ghc-text)
+ ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
+ ("ghc-time" ,ghc-time-locale-compat)
+ ("ghc-tagged" ,ghc-tagged)
+ ("ghc-unordered-containers" ,ghc-unordered-containers)
+ ("ghc-void" ,ghc-void)
+ ("ghc-vector" ,ghc-vector)))
+ (synopsis "Haskell bytes: serialization between binary and cereal")
+ (description "Haskell module to share code for serialization between
+binary and cereal")
+ (home-page "https://hackage.haskell.org/package/bytes")
+ (license license:bsd-3)))
+
;;; haskell.scm ends here
--
2.17.0
L
L
Ludovic Courtès wrote on 13 May 2018 14:13
Re: [bug#31418] [PATCH 4/6] gnu: Add ghc-binary.
(name . Tonton)(address . tonton@riseup.net)(address . 31418@debbugs.gnu.org)
874ljbl0nr.fsf@gnu.org
Hello,

I’ve applied patches 1 to 3 with minor tweaks to the descriptions (so
that they’d be full sentences, for instance), but…

Tonton <tonton@riseup.net> skribis:

Toggle quote (2 lines)
> * gnu/packages/haskell.scm (ghc-binary): New variable.

[...]

Toggle quote (8 lines)
> + (inputs `(("ghc-bytestring" ,ghc-bytestring-builder)
> + ("ghc-array" ,ghc-array)
> + ("ghc-ghc-prim" ,ghc-primitive)
> + ("ghc-hunit" ,ghc-hunit)
> + ("ghc-quickcheck" ,ghc-quickcheck-2.9)
> + ("ghc-test-framework" ,ghc-test-framework)
> + ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2-w-qc-2.9)

… here ‘ghc-test-framework-quickcheck2-w-qc-2.9’ is undefined. Did you
mean to define it in the first patch?

Could you send an updated patch set for what remains?

Thanks in advance,
Ludo’.
L
L
Ludovic Courtès wrote on 17 May 2018 07:18
Re: [bug#31421] [PATCH 4/6] gnu: Add ghc-binary.
(name . Tonton)(address . tonton@riseup.net)
87a7syz7q4.fsf@gnu.org
Tonton <tonton@riseup.net> skribis:

Toggle quote (2 lines)
> * gnu/packages/haskell.scm (ghc-binary): New variable.

As discussed at
this is unnecessary, so I’m closing this issue.

Ludo’.
L
L
Ludovic Courtès wrote on 20 May 2018 13:34
control message for bug #31418
(address . control@debbugs.gnu.org)
87y3gem5gy.fsf@gnu.org
tags 31418 fixed
close 31418
?
Your comment

This issue is archived.

To comment on this conversation send an email to 31418@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 31418
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch