diff mbox

[5/9] gnu: Add ghc-terminal-size.

Message ID 20161203104213.8135-5-david@craven.ch
State New
Headers show

Commit Message

David Craven Dec. 3, 2016, 10:42 a.m. UTC
* gnu/packages/haskell.scm (ghc-terminal-size): New variable.
---
 gnu/packages/haskell.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

Comments

Leo Famulari Dec. 3, 2016, 8:01 p.m. UTC | #1
On Sat, Dec 03, 2016 at 11:42:09AM +0100, David Craven wrote:
> * gnu/packages/haskell.scm (ghc-terminal-size): New variable.

LGTM
diff mbox

Patch

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index c5d586d..c9d8234 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -8092,4 +8092,23 @@  ported from the Tango math library; approximate and exact equality comparisons
 for general types.")
     (license license:bsd-3)))
 
+(define-public ghc-terminal-size
+  (package
+    (name "ghc-terminal-size")
+    (version "0.3.2.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://hackage.haskell.org/package/terminal-size/"
+                    "terminal-size-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0n4nvj3dbj9gxfnprgish45asn9z4dipv9j98s8i7g2n8yb3xhmm"))))
+    (build-system haskell-build-system)
+    (home-page "http://hackage.haskell.org/package/terminal-size")
+    (synopsis "Get terminal window height and width")
+    (description "Get terminal window height and width without ncurses
+dependency.")
+    (license license:bsd-3)))
+
 ;;; haskell.scm ends here