unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: John Soo <jsoo1@asu.edu>
To: rob@vllmrt.net, 36545@debbugs.gnu.org
Subject: [bug#36545] [PATCH] Add Hoogle
Date: Fri, 16 Aug 2019 05:58:34 +0000	[thread overview]
Message-ID: <CAKf5CqU_iLhFnKj4f7Sd6f4dMF5H8QGVpbD1szXOzhcgDJHPqQ@mail.gmail.com> (raw)
In-Reply-To: <CAKf5CqUnmr0fuEC6WCnEH1eK30tp4pDsWKW05K0MGq8fL8ZRPg@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 176 bytes --]

Hi Robert and Guix,

I realized just now that I had some incorrect git configuration. I have
attached the updated patches with my correct email address.

Thanks again!

- John

[-- Attachment #1.2: Type: text/html, Size: 307 bytes --]

[-- Attachment #2: 0004-gnu-Add-ghc-storablevector.patch --]
[-- Type: text/x-patch, Size: 2280 bytes --]

From 96d08d3085726309762b1e214d6968033c3c552d Mon Sep 17 00:00:00 2001
From: John Soo <jsoo1@asu.edu>
Date: Sun, 7 Jul 2019 17:35:45 -0700
Subject: [PATCH 04/12] gnu: Add ghc-storablevector.

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

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 0b9951bebd..2cc490eade 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -2758,6 +2758,43 @@ by the event-list package.")
 computation with an IO base.")
     (license license:bsd-3)))
 
+(define-public ghc-storablevector
+  (package
+    (name "ghc-storablevector")
+    (version "0.2.13")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append
+         "https://hackage.haskell.org/package/storablevector/storablevector-"
+         version ".tar.gz"))
+       (sha256
+        (base32
+         "1zmr738vwnhnyxbikayqnaz31ilv2qlmscp6iqgl7adcfbal4dzq"))))
+    (build-system haskell-build-system)
+    (inputs
+     `(("ghc-non-negative" ,ghc-non-negative)
+       ("ghc-utility-ht" ,ghc-utility-ht)
+       ("ghc-semigroups" ,ghc-semigroups)
+       ("ghc-unsafe" ,ghc-unsafe)
+       ("ghc-quickcheck" ,ghc-quickcheck)
+       ("ghc-syb" ,ghc-syb)))
+    (home-page "https://www.haskell.org/haskellwiki/Storable_Vector")
+    (synopsis "Fast, packed, strict storable arrays with a list interface")
+    (description
+     "Fast, packed, strict storable arrays with a list interface, a chunky
+lazy list interface with variable chunk size and an interface for write
+access via the ST monad.  This is much like bytestring and binary but can be
+used for every @code{Foreign.Storable.Storable} type.  See also package with a
+similar intention at http://hackage.haskell.org/package/vector.
+
+We do not provide advanced fusion optimization, since especially for lazy
+vectors this would either be incorrect or not applicable.  However we provide
+fusion with lazy lists in the package
+http://hackage.haskell.org/package/storablevector-streamfusion.")
+    (license license:bsd-3)))
+
 (define-public ghc-transformers-compat
   (package
     (name "ghc-transformers-compat")
-- 
2.22.0


[-- Attachment #3: 0005-gnu-Add-ghc-fmlist.patch --]
[-- Type: text/x-patch, Size: 1542 bytes --]

From 4e963af34139650201887ea827f779dd74ef3689 Mon Sep 17 00:00:00 2001
From: John Soo <jsoo1@asu.edu>
Date: Sun, 7 Jul 2019 17:36:43 -0700
Subject: [PATCH 05/12] gnu: Add ghc-fmlist.

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

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 2cc490eade..6188e477e2 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -2758,6 +2758,30 @@ by the event-list package.")
 computation with an IO base.")
     (license license:bsd-3)))
 
+(define-public ghc-fmlist
+  (package
+    (name "ghc-fmlist")
+    (version "0.9.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append
+         "https://hackage.haskell.org/package/fmlist/fmlist-"
+         version ".tar.gz"))
+       (sha256
+        (base32
+         "02868865hqm189h5wjd916abvqwkhbrx5b0119s1dwp70ifvbi4g"))))
+    (build-system haskell-build-system)
+    (home-page "https://github.com/sjoerdvisscher/fmlist")
+    (synopsis "FoldMap lists")
+    (description
+     "FoldMap lists are lists represented by their foldMap function.  FoldMap
+lists have O(1) cons, snoc and append, just like DLists, but other operations
+might have favorable performance characteristics as well.  These wild claims
+are still completely unverified though.")
+    (license license:bsd-3)))
+
 (define-public ghc-storablevector
   (package
     (name "ghc-storablevector")
-- 
2.22.0


[-- Attachment #4: 0002-gnu-Add-ghc-non-negative.patch --]
[-- Type: text/x-patch, Size: 1811 bytes --]

From 9d075173b57261433d050f2ed8b1c781c5602987 Mon Sep 17 00:00:00 2001
From: John Soo <jsoo1@asu.edu>
Date: Sun, 7 Jul 2019 17:30:41 -0700
Subject: [PATCH 02/12] gnu: Add ghc-non-negative.

* gnu/packages/haskell.scm (ghc-non-negative): New variable.
---
 gnu/packages/haskell.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index fe762a2a9a..e3de0d7807 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -2709,6 +2709,34 @@ transformers 0.3 and 0.4 for users who need strict transformers 0.2 or 0.3
 compatibility to run on old versions of the platform.")
     (license license:bsd-3)))
 
+(define-public ghc-non-negative
+  (package
+    (name "ghc-non-negative")
+    (version "0.1.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append
+         "https://hackage.haskell.org/package/non-negative/non-negative-"
+         version ".tar.gz"))
+       (sha256
+        (base32
+         "0f01q916dzkl1i0v15qrw9cviycki5g3fgi6x8gs45iwbzssq52n"))))
+    (build-system haskell-build-system)
+    (inputs
+     `(("ghc-semigroups" ,ghc-semigroups)
+       ("ghc-utility-ht" ,ghc-utility-ht)
+       ("ghc-quickcheck" ,ghc-quickcheck)))
+    (home-page "https://hackage.haskell.org/package/non-negative")
+    (synopsis "Non-negative numbers")
+    (description
+     "Provides a class for non-negative numbers, a wrapper which can turn any
+ordered numeric type into a member of that class, and a lazy number type for
+non-negative numbers (a generalization of Peano numbers).  This library is used
+by the event-list package.")
+    (license license:gpl3+)))
+
 (define-public ghc-transformers-compat
   (package
     (name "ghc-transformers-compat")
-- 
2.22.0


[-- Attachment #5: 0001-gnu-Add-ghc-unsafe.patch --]
[-- Type: text/x-patch, Size: 2477 bytes --]

From 1c60037da4c591072f591964d8faad41f34b52d4 Mon Sep 17 00:00:00 2001
From: John Soo <jsoo1@asu.edu>
Date: Sun, 7 Jul 2019 17:27:42 -0700
Subject: [PATCH 01/12] gnu: Add ghc-unsafe.

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

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 8787f10789..fe762a2a9a 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -19,6 +19,7 @@
 ;;; Copyright © 2018, 2019 Gabriel Hondet <gabrielhondet@gmail.com>
 ;;; Copyright © 2019 Robert Vollmert <rob@vllmrt.net>
 ;;; Copyright © 2019 Jacob MacDonald <jaccarmac@gmail.com>
+;;; Copyright © 2019 John Soo <jsoo1@asu.edu>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2781,6 +2782,40 @@ package.  This package re-exports the unix package when available.  When it
 isn't available, portable implementations are used.")
     (license license:bsd-3)))
 
+(define-public ghc-unsafe
+  (package
+    (name "ghc-unsafe")
+    (version "0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append
+         "https://hackage.haskell.org/package/unsafe/unsafe-"
+         version ".tar.gz"))
+       (sha256
+        (base32
+         "0hc6xr1i3hkz25gdgfx1jqgpsc9mwa05bkfynp0mcfdlyz6782nz"))))
+    (build-system haskell-build-system)
+    (home-page "https://hackage.haskell.org/package/unsafe")
+    (synopsis "Unified interface to unsafe functions")
+    (description
+     "SafeHaskell introduced the notion of safe and unsafe modules.  In order to
+make as many as possible modules \\\"safe\\\", the well-known unsafe functions
+were moved to distinguished modules.  This makes it hard to write packages that
+work with both old and new versions of GHC.  This package provides a single
+module System.Unsafe that exports the unsafe functions from the base package.
+It provides them in a style ready for qualification, that is, you should import
+them by
+
+import qualified System.Unsafe as Unsafe
+
+The package also contains a script called rename-unsafe.sh.  It replaces all
+occurrences of the original identifiers with the qualified identifiers from this
+package.  You still have to adapt the import commands.  It uses the
+darcs-replace-rec script from the darcs-scripts package.")
+    (license license:bsd-3)))
+
 (define-public ghc-indents
   (package
     (name "ghc-indents")
-- 
2.22.0


[-- Attachment #6: 0003-gnu-Add-ghc-timeit.patch --]
[-- Type: text/x-patch, Size: 1424 bytes --]

From e632c125af63afe2bdbef13e8981a02bb75afd48 Mon Sep 17 00:00:00 2001
From: John Soo <jsoo1@asu.edu>
Date: Sun, 7 Jul 2019 17:32:28 -0700
Subject: [PATCH 03/12] gnu: Add ghc-timeit.

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

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index e3de0d7807..0b9951bebd 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -2737,6 +2737,27 @@ non-negative numbers (a generalization of Peano numbers).  This library is used
 by the event-list package.")
     (license license:gpl3+)))
 
+(define-public ghc-timeit
+  (package
+    (name "ghc-timeit")
+    (version "2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append
+         "https://hackage.haskell.org/package/timeit/timeit-"
+         version ".tar.gz"))
+       (sha256
+        (base32
+         "1sliqpvl501rlcj6s0lhmsf5ym24j4h881wzc1f1wdyvg3jz8kd1"))))
+    (build-system haskell-build-system)
+    (home-page "https://github.com/merijn/timeit")
+    (synopsis "Time monadic computations with an IO base")
+    (description "A simple wrapper to show the used CPU time of monadic
+computation with an IO base.")
+    (license license:bsd-3)))
+
 (define-public ghc-transformers-compat
   (package
     (name "ghc-transformers-compat")
-- 
2.22.0


[-- Attachment #7: 0007-gnu-Add-ghc-listlike.patch --]
[-- Type: text/x-patch, Size: 2133 bytes --]

From d952a143ec404de8d06a0098485494a1cba0073d Mon Sep 17 00:00:00 2001
From: John Soo <jsoo1@asu.edu>
Date: Sun, 7 Jul 2019 17:52:53 -0700
Subject: [PATCH 07/12] gnu: Add ghc-listlike.

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

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 6638868ab9..4ffcc2d7e5 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -2851,6 +2851,44 @@ 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-hunit" ,ghc-hunit)
+       ("ghc-quickcheck" ,ghc-quickcheck)
+       ("ghc-random" ,ghc-random)
+       ("ghc-utf8-string" ,ghc-utf8-string)))
+    (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


[-- Attachment #8: 0006-gnu-Add-ghc-storable-record.patch --]
[-- Type: text/x-patch, Size: 2139 bytes --]

From 81133a71bc4240b03c3a1cf712797765ec41679d Mon Sep 17 00:00:00 2001
From: John Soo <jsoo1@asu.edu>
Date: Sun, 7 Jul 2019 17:40:12 -0700
Subject: [PATCH 06/12] gnu: Add ghc-storable-record.

* gnu/packages/haskell.scm (ghc-storable-record): New variable.
---
 gnu/packages/haskell.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 6188e477e2..6638868ab9 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -2782,6 +2782,38 @@ might have favorable performance characteristics as well.  These wild claims
 are still completely unverified though.")
     (license license:bsd-3)))
 
+(define-public ghc-storable-record
+  (package
+    (name "ghc-storable-record")
+    (version "0.0.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append
+         "https://hackage.haskell.org/package/storable-record/storable-record-"
+         version ".tar.gz"))
+       (sha256
+        (base32
+         "0hjs1km0fc9ch0i1rbycxia5w3939hk4p4md73ikgg4aipqb5zyf"))))
+    (build-system haskell-build-system)
+    (inputs
+     `(("ghc-semigroups" ,ghc-semigroups)
+       ("ghc-utility-ht" ,ghc-utility-ht)
+       ("ghc-storablevector" ,ghc-storablevector)
+       ("ghc-timeit" ,ghc-timeit)))
+    (home-page "https://hackage.haskell.org/package/storable-record")
+    (synopsis "Elegant definition of Storable instances for records")
+    (description
+     "With this package you can build a Storable instance of a record type
+from Storable instances of its elements in an elegant way.  It does not do any
+magic, just a bit arithmetic to compute the right offsets, that would be
+otherwise done manually or by a preprocessor like C2HS.  I cannot promise that
+the generated memory layout is compatible with that of a corresponding C
+struct.  However, the module generates the smallest layout that is possible
+with respect to the alignment of the record elements.")
+    (license license:bsd-3)))
+
 (define-public ghc-storablevector
   (package
     (name "ghc-storablevector")
-- 
2.22.0


[-- Attachment #9: 0008-gnu-Add-ghc-storable-tuple.patch --]
[-- Type: text/x-patch, Size: 1819 bytes --]

From df586495eeff93fdb8d5cabe8f4ca328e6be7788 Mon Sep 17 00:00:00 2001
From: John Soo <jsoo1@asu.edu>
Date: Sun, 7 Jul 2019 17:56:20 -0700
Subject: [PATCH 08/12] gnu: Add ghc-storable-tuple.

* gnu/packages/haskell.scm (ghc-storable-tuple): New variable.
---
 gnu/packages/haskell.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 4ffcc2d7e5..1eb061246d 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -4366,6 +4366,34 @@ vector types are supported.  Specific instances are provided for unboxed,
 boxed and storable vectors.")
     (license license:bsd-3)))
 
+(define-public ghc-storable-tuple
+  (package
+    (name "ghc-storable-tuple")
+    (version "0.0.3.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append
+         "https://hackage.haskell.org/package/storable-tuple/storable-tuple-"
+         version ".tar.gz"))
+       (sha256
+        (base32
+         "0dfzhxgkn1l6ls7zh6iifhyvhm8l47n40z0ar23c6ibsa94w1ynw"))))
+    (build-system haskell-build-system)
+    (inputs
+     `(("ghc-storable-record" ,ghc-storable-record)
+       ("ghc-utility-ht" ,ghc-utility-ht)
+       ("ghc-base-orphans" ,ghc-base-orphans)))
+    (home-page "https://hackage.haskell.org/package/storable-tuple")
+    (synopsis "Storable instance for pairs and triples")
+    (description
+     "Provides a Storable instance for pair and triple which should be binary
+compatible with C99 and C++.  The only purpose of this package is to provide a
+standard location for this instance so that other packages needing this
+instance can play nicely together.")
+    (license license:bsd-3)))
+
 (define-public ghc-bloomfilter
   (package
     (name "ghc-bloomfilter")
-- 
2.22.0


[-- Attachment #10: 0009-gnu-Add-ghc-process-extras.patch --]
[-- Type: text/x-patch, Size: 1816 bytes --]

From ced95372d220516ed2fd1dc405e3a77ec17b2c28 Mon Sep 17 00:00:00 2001
From: John Soo <jsoo1@asu.edu>
Date: Sun, 7 Jul 2019 17:59:28 -0700
Subject: [PATCH 09/12] gnu: Add ghc-process-extras.

* gnu/packages/haskell.scm (ghc-process-extras): New variable.
---
 gnu/packages/haskell.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 1eb061246d..fbd99a6cf1 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -4366,6 +4366,35 @@ vector types are supported.  Specific instances are provided for unboxed,
 boxed and storable vectors.")
     (license license:bsd-3)))
 
+(define-public ghc-process-extras
+  (package
+    (name "ghc-process-extras")
+    (version "0.7.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append
+         "https://hackage.haskell.org/package/process-extras/process-extras-"
+         version ".tar.gz"))
+       (sha256
+        (base32
+         "0klqgr37f1z2z6i0a9b0giapmq0p35l5k9kz1p7f0k1597w7agi9"))))
+    (build-system haskell-build-system)
+    (inputs
+     `(("ghc-data-default" ,ghc-data-default)
+       ("ghc-generic-deriving" ,ghc-generic-deriving)
+       ("ghc-hunit" ,ghc-hunit)
+       ("ghc-listlike" ,ghc-listlike)))
+    (home-page "https://github.com/seereason/process-extras")
+    (synopsis "Process extras")
+    (description
+     "Extends http://hackage.haskell.org/package/process.  Read process
+input and output as ByteStrings or Text, or write your own ProcessOutput
+instance.  Lazy process input and output.  ProcessMaker class for more
+flexibility in the process creation API.")
+    (license license:expat)))
+
 (define-public ghc-storable-tuple
   (package
     (name "ghc-storable-tuple")
-- 
2.22.0


[-- Attachment #11: 0010-gnu-Add-ghc-js-jquery.patch --]
[-- Type: text/x-patch, Size: 2010 bytes --]

From 051cfa4724d82d9ebfd11f92af85d0b1390b482b Mon Sep 17 00:00:00 2001
From: John Soo <jsoo1@asu.edu>
Date: Sun, 7 Jul 2019 18:00:52 -0700
Subject: [PATCH 10/12] gnu: Add ghc-js-jquery.

* gnu/packages/haskell-web.scm (ghc-js-jquery): New variable.
---
 gnu/packages/haskell-web.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/haskell-web.scm b/gnu/packages/haskell-web.scm
index 7cbf8932e6..92fa0529b4 100644
--- a/gnu/packages/haskell-web.scm
+++ b/gnu/packages/haskell-web.scm
@@ -6,6 +6,7 @@
 ;;; Copyright © 2017 rsiddharth <s@ricketyspace.net>
 ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright © 2019 Robert Vollmert <rob@vllmrt.net>
+;;; Copyright © 2019 John Soo <jsoo1@asu.edu>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1463,3 +1464,30 @@ Together with the snap-core library upon which it depends, it provides a
 clean and efficient Haskell programming interface to the HTTP
 protocol.")
     (license license:bsd-3)))
+
+(define-public ghc-js-jquery
+  (package
+    (name "ghc-js-jquery")
+    (version "3.3.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append
+         "https://hackage.haskell.org/package/js-jquery/js-jquery-"
+         version ".tar.gz"))
+       (sha256
+        (base32
+         "16q68jzbs7kp07dnq8cprdcc8fd41rim38039vg0w4x11lgniq70"))))
+    (build-system haskell-build-system)
+    ;; Tests do network IO
+    (arguments `(#:tests? #f))
+    (home-page "https://github.com/ndmitchell/js-jquery#readme")
+    (synopsis "Obtain minified jQuery code")
+    (description
+     "This package bundles the minified jQuery code (http://jquery.com/)
+into a Haskell package, so it can be depended upon by Cabal packages.  The
+first three components of the version number match the upstream jQuery version.
+The package is designed to meet the redistribution requirements of downstream
+users (e.g. Debian).")
+    (license license:expat)))
-- 
2.22.0


[-- Attachment #12: 0011-gnu-Add-ghc-js-flot.patch --]
[-- Type: text/x-patch, Size: 1765 bytes --]

From e8af1694bee7023f2394450677d850e788f9f2c1 Mon Sep 17 00:00:00 2001
From: John Soo <jsoo1@asu.edu>
Date: Sun, 7 Jul 2019 18:01:54 -0700
Subject: [PATCH 11/12] gnu: Add ghc-js-flot.

* gnu/packages/haskell-web.scm (ghc-js-flot): New variable.
---
 gnu/packages/haskell-web.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/haskell-web.scm b/gnu/packages/haskell-web.scm
index 92fa0529b4..a1350ca959 100644
--- a/gnu/packages/haskell-web.scm
+++ b/gnu/packages/haskell-web.scm
@@ -1491,3 +1491,30 @@ first three components of the version number match the upstream jQuery version.
 The package is designed to meet the redistribution requirements of downstream
 users (e.g. Debian).")
     (license license:expat)))
+
+(define-public ghc-js-flot
+  (package
+    (name "ghc-js-flot")
+    (version "0.8.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append
+         "https://hackage.haskell.org/package/js-flot/js-flot-"
+         version ".tar.gz"))
+       (sha256
+        (base32
+         "0yjyzqh3qzhy5h3nql1fckw0gcfb0f4wj9pm85nafpfqp2kg58hv"))))
+    (build-system haskell-build-system)
+    (inputs
+     `(("ghc-http" ,ghc-http)))
+    (home-page "https://github.com/ndmitchell/js-flot#readme")
+    (synopsis "Obtain minified flot code")
+    (description
+     "This package bundles the minified Flot code (http://www.flotcharts.org/)
+(a jQuery plotting library) into a Haskell package, so it can be depended upon
+by Cabal packages.  The first three components of the version number match the
+upstream flot version.  The package is designed to meet the redistribution
+requirements of downstream users (e.g. Debian).")
+    (license license:expat)))
-- 
2.22.0


[-- Attachment #13: 0012-gnu-Add-hoogle.patch --]
[-- Type: text/x-patch, Size: 2911 bytes --]

From d02e4ed8a0b9357d1985d44fd638b8841014b3c9 Mon Sep 17 00:00:00 2001
From: John Soo <jsoo1@asu.edu>
Date: Sun, 7 Jul 2019 18:03:26 -0700
Subject: [PATCH 12/12] gnu: Add hoogle.

* gnu/packages/haskell-apps.scm (hoogle): New variable.
---
 gnu/packages/haskell-apps.scm | 53 +++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

diff --git a/gnu/packages/haskell-apps.scm b/gnu/packages/haskell-apps.scm
index e77f6d113b..578dbaf2c3 100644
--- a/gnu/packages/haskell-apps.scm
+++ b/gnu/packages/haskell-apps.scm
@@ -7,6 +7,7 @@
 ;;; Copyright © 2016, 2017 Leo Famulari <leo@famulari.name>
 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
 ;;; Copyright © 2019 Kyle Meyer <kyle@kyleam.com>
+;;; Copyright © 2015 John Soo <jsoo1@asu.edu>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -405,3 +406,55 @@ play inspired from classics Lemmings and The Incredible Machine.  The project
 proved to be an excellent learning experience for the programmers.  Everything
 is programmed in Haskell.")
     (license license:bsd-3)))
+
+(define-public hoogle
+  (package
+    (name "hoogle")
+    (version "5.0.17.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append
+         "https://hackage.haskell.org/package/hoogle/hoogle-"
+         version ".tar.gz"))
+       (sha256
+        (base32
+         "174gp41v0krzj37m75pnr3aawyhkbk2wq4q6zk2z3zh0avvvmgk6"))))
+    (build-system haskell-build-system)
+    (inputs
+     `(("ghc-network-uri" ,ghc-network-uri)
+       ("ghc-network" ,ghc-network)
+       ("ghc-quickcheck" ,ghc-quickcheck)
+       ("ghc-aeson" ,ghc-aeson)
+       ("ghc-cmdargs" ,ghc-cmdargs)
+       ("ghc-conduit" ,ghc-conduit)
+       ("ghc-conduit-extra" ,ghc-conduit-extra)
+       ("ghc-connection" ,ghc-connection)
+       ("ghc-extra" ,ghc-extra)
+       ("ghc-old-locale" ,ghc-old-locale)
+       ("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
+       ("ghc-http-conduit" ,ghc-http-conduit)
+       ("ghc-http-types" ,ghc-http-types)
+       ("ghc-js-flot" ,ghc-js-flot)
+       ("ghc-js-jquery" ,ghc-js-jquery)
+       ("ghc-mmap" ,ghc-mmap)
+       ("ghc-process-extras" ,ghc-process-extras)
+       ("ghc-resourcet" ,ghc-resourcet)
+       ("ghc-storable-tuple" ,ghc-storable-tuple)
+       ("ghc-tar" ,ghc-tar)
+       ("ghc-uniplate" ,ghc-uniplate)
+       ("ghc-utf8-string" ,ghc-utf8-string)
+       ("ghc-vector" ,ghc-vector)
+       ("ghc-wai" ,ghc-wai)
+       ("ghc-wai-logger" ,ghc-wai-logger)
+       ("ghc-warp" ,ghc-warp)
+       ("ghc-warp-tls" ,ghc-warp-tls)
+       ("ghc-zlib" ,ghc-zlib)))
+    (home-page "https://hoogle.haskell.org/")
+    (synopsis "Haskell API Search")
+    (description
+     "Hoogle is a Haskell API search engine, which allows you to search many
+standard Haskell libraries by either function name, or by approximate type
+signature.")
+    (license license:bsd-3)))
-- 
2.22.0


  parent reply	other threads:[~2019-08-16  6:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-08  6:10 [bug#36545] [PATCH] Add Hoogle John Soo
2019-07-09 17:37 ` [bug#36545] two issues Robert Vollmert
2019-08-15 17:09 ` [bug#36545] [PATCH] Add Hoogle John Soo
     [not found]   ` <CAKf5CqUnmr0fuEC6WCnEH1eK30tp4pDsWKW05K0MGq8fL8ZRPg@mail.gmail.com>
2019-08-16  5:58     ` John Soo [this message]
2019-08-16 12:22       ` Robert Vollmert
2019-08-16 13:58         ` John Soo
2019-09-03  3:18           ` bug#36545: " Timothy Sample

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=CAKf5CqU_iLhFnKj4f7Sd6f4dMF5H8QGVpbD1szXOzhcgDJHPqQ@mail.gmail.com \
    --to=jsoo1@asu.edu \
    --cc=36545@debbugs.gnu.org \
    --cc=rob@vllmrt.net \
    /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).