all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#38847] [PATCH] gnu: Add ghc-say.
@ 2020-01-01 16:49 Alexandru-Sergiu Marton
  2020-01-02  4:26 ` bug#38847: " Brett Gilio
  0 siblings, 1 reply; 2+ messages in thread
From: Alexandru-Sergiu Marton @ 2020-01-01 16:49 UTC (permalink / raw)
  To: 38847; +Cc: Alexandru-Sergiu Marton

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

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index 716d14d7fb..7c8eb9eb39 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -9690,6 +9690,41 @@ are not exception safe and can be broken by @code{killThread}.")
     (description "Reasonably fast data encoding library.")
     (license license:bsd-3)))
 
+(define-public ghc-say
+  (package
+    (name "ghc-say")
+    (version "0.1.0.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append
+               "https://hackage.haskell.org/package/say/say-"
+               version
+               ".tar.gz"))
+        (sha256
+          (base32
+            "1r5kffjfwpas45g74sip8glrj1m9nygrnxjm7xgw898rq9pnafgn"))))
+    (build-system haskell-build-system)
+    (native-inputs
+     `(("ghc-hspec" ,ghc-hspec)
+       ("hspec-discover" ,hspec-discover)
+       ("ghc-unliftio" ,ghc-unliftio)))
+    (home-page "https://github.com/fpco/say#readme")
+    (synopsis
+      "Send textual messages to a Handle in a thread-friendly way")
+    (description
+      "Simple, thread safe API to write a line of textual data to a Handle
+- such as sending some messages to the terminal - that has the following properties:
+@itemize
+@item Properly handle character encoding settings on the Handle
+@item For reasonably sized messages, ensure that the entire message is written
+ in one chunk to avoid interleaving data with other threads
+@item Avoid unnecessary memory allocations and copies
+@item Minimize locking
+@end itemize")
+    (license license:expat)))
+
+
 (define-public ghc-scientific
   (package
     (name "ghc-scientific")
-- 
2.24.1

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

* bug#38847: [PATCH] gnu: Add ghc-say.
  2020-01-01 16:49 [bug#38847] [PATCH] gnu: Add ghc-say Alexandru-Sergiu Marton
@ 2020-01-02  4:26 ` Brett Gilio
  0 siblings, 0 replies; 2+ messages in thread
From: Brett Gilio @ 2020-01-02  4:26 UTC (permalink / raw)
  To: Alexandru-Sergiu Marton; +Cc: Alexandru-Sergiu Marton, 38847-done

Hey Sergiu!

Thanks for the patch. I made some small changes to the home-page field,
and fixed some indentation issues. I have build and tested this and
pushed it to master with 4da75228eff7ed924e4cf9e66b6ed5693a5d1174.

Thanks!

-- 
Brett M. Gilio
GNU Guix, Contributor | GNU Project, Webmaster
[DFC0 C7F7 9EE6 0CA7 AE55 5E19 6722 43C4 A03F 0EEE]
<brettg@gnu.org> <brettg@posteo.net>

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

end of thread, other threads:[~2020-01-02  4:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-01 16:49 [bug#38847] [PATCH] gnu: Add ghc-say Alexandru-Sergiu Marton
2020-01-02  4:26 ` bug#38847: " Brett Gilio

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.