[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
228/249: gnu: ghc-esqueleto: Update to 3.0.0.
From: |
guix-commits |
Subject: |
228/249: gnu: ghc-esqueleto: Update to 3.0.0. |
Date: |
Thu, 31 Oct 2019 23:50:08 -0400 (EDT) |
samplet pushed a commit to branch wip-haskell-updates
in repository guix.
commit d6eb7e7a96d4f0057ba025a0833bcd8858eafe31
Author: Timothy Sample <address@hidden>
Date: Thu Oct 31 14:28:24 2019 -0400
gnu: ghc-esqueleto: Update to 3.0.0.
* gnu/packages/haskell-xyz.scm (ghc-esqueleto): Update to 3.0.0 (replacing
'git-fetch' with 'url-fetch').
---
gnu/packages/haskell-xyz.scm | 113 +++++++++++++++++++++----------------------
1 file changed, 54 insertions(+), 59 deletions(-)
diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index 841aad6..d3116ac 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -3111,69 +3111,64 @@ directly uses the type system, rather than out-of-band
exceptions.")
(license license:bsd-3)))
(define-public ghc-esqueleto
- (let ((version "2.5.3")
- (revision "1")
- (commit "b81e0d951e510ebffca03c5a58658ad884cc6fbd"))
- (package
- (name "ghc-esqueleto")
- (version (git-version version revision commit))
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/bitemyapp/esqueleto")
- (commit commit)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0lz1qxms7cfg5p3j37inlych0r2fwhm8xbarcys3df9m7jy9nixa"))))
- (build-system haskell-build-system)
- (arguments
- `(#:haddock? #f ; Haddock reports an internal error.
- #:phases
- (modify-phases %standard-phases
- ;; This package normally runs tests for the MySQL, PostgreSQL, and
- ;; SQLite backends. Since we only have Haskell packages for
- ;; SQLite, we remove the other two test suites. FIXME: Add the
- ;; other backends and run all three test suites.
- (add-before 'configure 'remove-non-sqlite-test-suites
- (lambda _
- (use-modules (ice-9 rdelim))
- (with-atomic-file-replacement "esqueleto.cabal"
- (lambda (in out)
- (let loop ((line (read-line in 'concat)) (deleting? #f))
- (cond
- ((eof-object? line) #t)
- ((string-every char-set:whitespace line)
- (unless deleting? (display line out))
- (loop (read-line in 'concat) #f))
- ((member line '("test-suite mysql\n"
- "test-suite postgresql\n"))
- (loop (read-line in 'concat) #t))
- (else
- (unless deleting? (display line out))
- (loop (read-line in 'concat) deleting?)))))))))))
- (inputs
- `(("ghc-blaze-html" ,ghc-blaze-html)
- ("ghc-conduit" ,ghc-conduit)
- ("ghc-monad-logger" ,ghc-monad-logger)
- ("ghc-persistent" ,ghc-persistent)
- ("ghc-resourcet" ,ghc-resourcet)
- ("ghc-tagged" ,ghc-tagged)
- ("ghc-unliftio" ,ghc-unliftio)
- ("ghc-unordered-containers" ,ghc-unordered-containers)))
- (native-inputs
- `(("ghc-hspec" ,ghc-hspec)
- ("ghc-persistent-sqlite" ,ghc-persistent-sqlite)
- ("ghc-persistent-template" ,ghc-persistent-template)))
- (home-page "https://github.com/bitemyapp/esqueleto")
- (synopsis "Type-safe embedded domain specific language for SQL queries")
- (description "This library provides a type-safe embedded domain specific
+ (package
+ (name "ghc-esqueleto")
+ (version "3.0.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://hackage.haskell.org/package/"
+ "esqueleto/esqueleto-" version ".tar.gz"))
+ (sha256
+ (base32
+ "187c098h2xyf2nhifkdy2bqfl6iap7a93mzwd2kirl5yyicpc9zy"))))
+ (build-system haskell-build-system)
+ (arguments
+ `(#:haddock? #f ; Haddock reports an internal error.
+ #:phases
+ (modify-phases %standard-phases
+ ;; This package normally runs tests for the MySQL, PostgreSQL, and
+ ;; SQLite backends. Since we only have Haskell packages for
+ ;; SQLite, we remove the other two test suites. FIXME: Add the
+ ;; other backends and run all three test suites.
+ (add-before 'configure 'remove-non-sqlite-test-suites
+ (lambda _
+ (use-modules (ice-9 rdelim))
+ (with-atomic-file-replacement "esqueleto.cabal"
+ (lambda (in out)
+ (let loop ((line (read-line in 'concat)) (deleting? #f))
+ (cond
+ ((eof-object? line) #t)
+ ((string-every char-set:whitespace line)
+ (unless deleting? (display line out))
+ (loop (read-line in 'concat) #f))
+ ((member line '("test-suite mysql\n"
+ "test-suite postgresql\n"))
+ (loop (read-line in 'concat) #t))
+ (else
+ (unless deleting? (display line out))
+ (loop (read-line in 'concat) deleting?)))))))))))
+ (inputs
+ `(("ghc-blaze-html" ,ghc-blaze-html)
+ ("ghc-conduit" ,ghc-conduit)
+ ("ghc-monad-logger" ,ghc-monad-logger)
+ ("ghc-persistent" ,ghc-persistent)
+ ("ghc-resourcet" ,ghc-resourcet)
+ ("ghc-tagged" ,ghc-tagged)
+ ("ghc-unliftio" ,ghc-unliftio)
+ ("ghc-unordered-containers" ,ghc-unordered-containers)))
+ (native-inputs
+ `(("ghc-hspec" ,ghc-hspec)
+ ("ghc-persistent-sqlite" ,ghc-persistent-sqlite)
+ ("ghc-persistent-template" ,ghc-persistent-template)))
+ (home-page "https://github.com/bitemyapp/esqueleto")
+ (synopsis "Type-safe embedded domain specific language for SQL queries")
+ (description "This library provides a type-safe embedded domain specific
language (EDSL) for SQL queries that works with SQL backends as provided by
@code{ghc-persistent}. Its language closely resembles SQL, so you don't have
to learn new concepts, just new syntax, and it's fairly easy to predict the
generated SQL and optimize it for your backend.")
- (license license:bsd-3))))
+ (license license:bsd-3)))
(define-public ghc-exactprint
(package
- 185/249: gnu: ghc-vault: Update to 0.3.1.3., (continued)
- 185/249: gnu: ghc-vault: Update to 0.3.1.3., guix-commits, 2019/10/31
- 155/249: gnu: ghc-httpd-shed: Update to 0.4.1.1., guix-commits, 2019/10/31
- 191/249: gnu: ghc-either: Update to 5.0.1.1., guix-commits, 2019/10/31
- 190/249: gnu: ghc-free: Update to 5.1.2., guix-commits, 2019/10/31
- 192/249: gnu: ghc-wai: Update to 3.2.2.1., guix-commits, 2019/10/31
- 196/249: gnu: ghc-rebase: Update to 1.3.1.1., guix-commits, 2019/10/31
- 186/249: gnu: ghc-cheapskate: Update to 0.1.1.1., guix-commits, 2019/10/31
- 202/249: gnu: ghc-conduit: Update to 1.3.1.1., guix-commits, 2019/10/31
- 200/249: gnu: ghc-foldl: Update to 1.4.5., guix-commits, 2019/10/31
- 210/249: gnu: ghc-simple-sendfile: Update to 0.2.30., guix-commits, 2019/10/31
- 228/249: gnu: ghc-esqueleto: Update to 3.0.0.,
guix-commits <=
- 211/249: gnu: ghc-stm-conduit: Update to 4.0.1., guix-commits, 2019/10/31
- 223/249: gnu: ghc-chart: Update to 1.9.1., guix-commits, 2019/10/31
- 221/249: gnu: ghc-persistent-template: Update to 2.6.0., guix-commits, 2019/10/31
- 232/249: gnu: ghc-pandoc: Update to 2.7.3., guix-commits, 2019/10/31
- 238/249: squash! gnu: ghc-logict: Update to 0.7.0.2., guix-commits, 2019/10/31
- 240/249: gnu: ghc-primitive: Update Cabal file to r1., guix-commits, 2019/10/31
- 246/249: gnu: ghc-test-framework: Update Cabal file to r5., guix-commits, 2019/10/31
- 47/249: gnu: ghc-ansi-wl-pprint: Update to 0.6.9., guix-commits, 2019/10/31
- 67/249: gnu: ghc-fingertree: Update to 0.1.4.2., guix-commits, 2019/10/31
- 63/249: gnu: ghc-vector-algorithms: Update to 0.8.0.1., guix-commits, 2019/10/31