guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: Add ghc-stylish-haskell.


From: guix-commits
Subject: 01/01: gnu: Add ghc-stylish-haskell.
Date: Sun, 10 Feb 2019 16:01:41 -0500 (EST)

dannym pushed a commit to branch master
in repository guix.

commit 2356b7ab6d36522880abb7073ec87990b721ce1a
Author: Gabriel Hondet <address@hidden>
Date:   Sun Feb 10 21:47:24 2019 +0100

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

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index c0348cc..21a5177 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -11546,4 +11546,59 @@ language extension}.  This extension enables Unicode 
characters to be used to
 stand for certain ASCII character sequences, i.e. → instead of @code{->},
 ∀ instead of @code{forall} and many others.")
     (license license:bsd-3)))
+
+(define-public ghc-stylish-haskell
+  (package
+    (name "ghc-stylish-haskell")
+    (version "0.9.2.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append
+               "mirror://hackage/package/stylish-haskell/stylish-haskell-"
+               version
+               ".tar.gz"))
+        (sha256
+          (base32
+            "1ls11fdx6snvfx8yykpidz142zzxwi5bazl49hgfqlwx50rqcp7w"))))
+    (build-system haskell-build-system)
+    (inputs
+      `(("ghc-aeson" ,ghc-aeson)
+        ("ghc-file-embed" ,ghc-file-embed)
+        ("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
+        ("ghc-semigroups" ,ghc-semigroups)
+        ("ghc-syb" ,ghc-syb)
+        ("ghc-yaml" ,ghc-yaml)
+        ("ghc-strict" ,ghc-strict)
+        ("ghc-optparse-applicative"
+         ,ghc-optparse-applicative)))
+    (native-inputs
+      `(("ghc-hunit" ,ghc-hunit)
+        ("ghc-test-framework" ,ghc-test-framework)
+        ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
+    (home-page "https://github.com/jaspervdj/stylish-haskell";)
+    (synopsis "Haskell code prettifier")
+    (description "Stylish-haskell is a Haskell code prettifier.  The goal is
+not to format all of the code in a file, to avoid \"getting in the way\".
+However, this tool can e.g. clean up import statements and help doing various
+tasks that get tedious very quickly.  It can
address@hidden
address@hidden
+Align and sort @code{import} statements
address@hidden
+Group and wrap @code{{-# LANGUAGE #-}} pragmas, remove (some) redundant
+pragmas
address@hidden
+Remove trailing whitespaces
address@hidden
+Align branches in @code{case} and fields in records
address@hidden
+Convert line endings (customisable)
address@hidden
+Replace tabs by four spaces (turned off by default)
address@hidden
+Replace some ASCII sequences by their Unicode equivalent (turned off by
+default)
address@hidden itemize")
+    (license license:bsd-3)))
 ;;; haskell.scm ends here



reply via email to

[Prev in Thread] Current Thread [Next in Thread]