[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/17: gnu: Add ghc-websockets.
From: |
guix-commits |
Subject: |
04/17: gnu: Add ghc-websockets. |
Date: |
Fri, 8 May 2020 05:09:11 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository guix.
commit c9fc2d2964f9932d355cefdfec5886e28cb94600
Author: John Soo <address@hidden>
AuthorDate: Fri Dec 13 07:12:42 2019 -0800
gnu: Add ghc-websockets.
* gnu/packages/haskell-web.scm (ghc-websockets): New variable.
Signed-off-by: Christopher Baines <address@hidden>
---
gnu/packages/haskell-web.scm | 51 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/gnu/packages/haskell-web.scm b/gnu/packages/haskell-web.scm
index 05be862..09ed793 100644
--- a/gnu/packages/haskell-web.scm
+++ b/gnu/packages/haskell-web.scm
@@ -655,6 +655,57 @@ limitation, automatic pruning, energy saving and replay
resistance.")
a WAI handler, via the native Haskell TLS implementation.")
(license license:expat)))
+(define-public ghc-websockets
+ (package
+ (name "ghc-websockets")
+ (version "0.12.6.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://hackage/package/websockets/websockets-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "1vp3790w3hmr6v96314vdx74f7sg2c7hvnc93gafq0xhbxnr7nvx"))))
+ (build-system haskell-build-system)
+ (inputs
+ `(("ghc-attoparsec" ,ghc-attoparsec)
+ ("ghc-base64-bytestring" ,ghc-base64-bytestring)
+ ("ghc-bytestring-builder" ,ghc-bytestring-builder)
+ ("ghc-case-insensitive" ,ghc-case-insensitive)
+ ("ghc-network" ,ghc-network)
+ ("ghc-random" ,ghc-random)
+ ("ghc-sha" ,ghc-sha)
+ ("ghc-streaming-commons" ,ghc-streaming-commons)
+ ("ghc-entropy" ,ghc-entropy)))
+ (native-inputs
+ `(("ghc-hunit" ,ghc-hunit)
+ ("ghc-quickcheck" ,ghc-quickcheck)
+ ("ghc-test-framework" ,ghc-test-framework)
+ ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
+ ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
+ (home-page "https://jaspervdj.be/websockets/")
+ (synopsis
+ "Write WebSocket-capable servers in Haskell")
+ (description
+ "This library allows you to write WebSocket-capable servers.
+
+An example server:
+@url{https://github.com/jaspervdj/websockets/blob/master/example/server.lhs}
+An example client:
+@url{https://github.com/jaspervdj/websockets/blob/master/example/client.hs}
+
+See also:
+@itemize
+@item The specification of the WebSocket protocol:
+@url{http://www.whatwg.org/specs/web-socket-protocol/}
+@item The JavaScript API for dealing with WebSockets:
+@url{http://www.w3.org/TR/websockets/}
+@end itemize")
+ (license license:bsd-3)))
+
(define-public ghc-xss-sanitize
(package
(name "ghc-xss-sanitize")
- 06/17: gnu: Add ghc-sourcemap., (continued)
- 06/17: gnu: Add ghc-sourcemap., guix-commits, 2020/05/08
- 07/17: gnu: Add ghc-mtl-compat., guix-commits, 2020/05/08
- 03/17: gnu: Add ghc-tasty-hspec., guix-commits, 2020/05/08
- 08/17: gnu: Add ghc-protolude., guix-commits, 2020/05/08
- 09/17: gnu: Add ghc-pattern-arrows., guix-commits, 2020/05/08
- 10/17: gnu: Add ghc-language-javascript., guix-commits, 2020/05/08
- 11/17: gnu: Add ghc-bower-json., guix-commits, 2020/05/08
- 13/17: gnu: Add ghc-assoc., guix-commits, 2020/05/08
- 14/17: gnu: Add ghc-these., guix-commits, 2020/05/08
- 16/17: gnu: Add ghc-happy@1.19.9, guix-commits, 2020/05/08
- 04/17: gnu: Add ghc-websockets.,
guix-commits <=
- 15/17: gnu: Add ghc-semialign., guix-commits, 2020/05/08
- 17/17: gnu: Add purescript., guix-commits, 2020/05/08
- 12/17: gnu: Add ghc-aeson-better-errors., guix-commits, 2020/05/08