unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#39032] [PATCH] gnu: Add ghc-html-conduit.
@ 2020-01-08  9:35 Alexandru-Sergiu Marton
  2020-03-29 19:13 ` bug#39032: " Marius Bakke
  0 siblings, 1 reply; 2+ messages in thread
From: Alexandru-Sergiu Marton @ 2020-01-08  9:35 UTC (permalink / raw)
  To: 39032; +Cc: Alexandru-Sergiu Marton

* gnu/packages/haskell-web.scm (ghc-html-conduit): New variable.
---
 gnu/packages/haskell-web.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/haskell-web.scm b/gnu/packages/haskell-web.scm
index 5888e8542e..6773455f3b 100644
--- a/gnu/packages/haskell-web.scm
+++ b/gnu/packages/haskell-web.scm
@@ -751,6 +751,42 @@ Haskell.")
 documents.")
     (license license:bsd-3)))
 
+(define-public ghc-html-conduit
+  (package
+    (name "ghc-html-conduit")
+    (version "1.3.2.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://hackage.haskell.org/package/html-conduit/"
+             "html-conduit-" version ".tar.gz"))
+       (sha256
+        (base32
+         "196c8zcnjp1pc5qvqxd8arx3xkw0a90rvg9mmiw2l4zwnx65709n"))))
+    (build-system haskell-build-system)
+    (inputs
+     `(("ghc-resourcet" ,ghc-resourcet)
+       ("ghc-conduit" ,ghc-conduit)
+       ("ghc-xml-conduit" ,ghc-xml-conduit)
+       ("ghc-xml-types" ,ghc-xml-types)
+       ("ghc-attoparsec" ,ghc-attoparsec)
+       ("ghc-conduit-extra" ,ghc-conduit-extra)))
+    (native-inputs
+     `(("ghc-hspec" ,ghc-hspec)
+       ("ghc-hunit" ,ghc-hunit)))
+    (home-page "https://github.com/snoyberg/xml")
+    (synopsis
+     "Parse HTML documents using xml-conduit datatypes")
+    (description
+     "This package provides a parser for HTML documents that uses
+tagstream-conduit.  It automatically balances mismatched tags, so that
+there shouldn't be any parse failures.  It does not handle a full HTML
+document rendering, such as adding missing html and head tags.  Note that,
+since version 1.3.1, it uses an inlined copy of tagstream-conduit with
+entity decoding bugfixes applied.")
+    (license license:expat)))
+
 (define-public ghc-blaze-html
   (package
     (name "ghc-blaze-html")
-- 
2.24.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#39032: [PATCH] gnu: Add ghc-html-conduit.
  2020-01-08  9:35 [bug#39032] [PATCH] gnu: Add ghc-html-conduit Alexandru-Sergiu Marton
@ 2020-03-29 19:13 ` Marius Bakke
  0 siblings, 0 replies; 2+ messages in thread
From: Marius Bakke @ 2020-03-29 19:13 UTC (permalink / raw)
  To: Alexandru-Sergiu Marton, 39032-done; +Cc: Alexandru-Sergiu Marton

[-- Attachment #1: Type: text/plain, Size: 142 bytes --]

Alexandru-Sergiu Marton <brown121407@gmail.com> writes:

> * gnu/packages/haskell-web.scm (ghc-html-conduit): New variable.

Applied, thanks!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-29 19:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-08  9:35 [bug#39032] [PATCH] gnu: Add ghc-html-conduit Alexandru-Sergiu Marton
2020-03-29 19:13 ` bug#39032: " Marius Bakke

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).