[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
15/29: gnu: Add polymorphic-functions.
From: |
guix-commits |
Subject: |
15/29: gnu: Add polymorphic-functions. |
Date: |
Thu, 30 Jun 2022 14:02:15 -0400 (EDT) |
ambrevar pushed a commit to branch master
in repository guix.
commit 1d2a1bcb441f0f4bcfa74d2f8e06718cdd6b1f7e
Author: Pierre Neidhardt <mail@ambrevar.xyz>
AuthorDate: Thu Jun 30 17:39:31 2022 +0200
gnu: Add polymorphic-functions.
* gnu/packages/lisp-xyz.scm (cl-polymorphic-functions,
ecl-polymorphic-functions, sbcl-polymorphic-functions): New variables.
---
gnu/packages/lisp-xyz.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 63a66fb6b7..940925174a 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -21994,3 +21994,49 @@ particularly @code{cl:typep} and @code{cl:subtypep}.")
(define-public ecl-ctype
(sbcl-package->ecl-package sbcl-ctype))
+
+(define-public sbcl-polymorphic-functions
+ (package
+ (name "sbcl-polymorphic-functions")
+ (version "0.2.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/digikar99/polymorphic-functions/")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name "cl-polymorphic-functions" version))
+ (sha256
+ (base32 "161ylp3avmkylgfddp7i1kscv3bqx734jk1i97xhsbl7x83nin0h"))))
+ (build-system asdf-build-system/sbcl)
+ (inputs
+ (list sbcl-alexandria
+ sbcl-closer-mop
+ sbcl-compiler-macro-notes
+ sbcl-ctype
+ sbcl-fiveam
+ sbcl-cl-form-types
+ sbcl-introspect-environment
+ sbcl-slime-swank))
+ (arguments
+ ;; Tests fail: https://github.com/digikar99/polymorphic-functions/issues/8
+ '(#:tests? #f))
+ (home-page "https://github.com/digikar99/polymorphic-functions/")
+ (synopsis "Function type to dispatch on types instead of classes")
+ (description
+ "This library provides all of
+
+@itemize
+@item ad hoc polymorphism and
+@item subtype polymorphism
+@item parametric polymorphism (in a very limited sense)
+@end itemize
+
+to dispatch on the basis of types rather than classes.")
+ (license license:expat)))
+
+(define-public cl-polymorphic-functions
+ (sbcl-package->cl-source-package sbcl-polymorphic-functions))
+
+(define-public ecl-polymorphic-functions
+ (sbcl-package->ecl-package sbcl-polymorphic-functions))
- 25/29: gnu: Add cl-trees., (continued)
- 25/29: gnu: Add cl-trees., guix-commits, 2022/06/30
- 22/29: gnu: Add mathkit., guix-commits, 2022/06/30
- 26/29: gnu: Add cl-geometry., guix-commits, 2022/06/30
- 28/29: gnu: Add cl-sdl2-ttf., guix-commits, 2022/06/30
- 29/29: gnu: Add sketch., guix-commits, 2022/06/30
- 17/29: gnu: Add slot-extra-options., guix-commits, 2022/06/30
- 03/29: gnu: Add cl-algebraic-data-type., guix-commits, 2022/06/30
- 16/29: gnu: sbcl-parachute: Update to 20210920., guix-commits, 2022/06/30
- 13/29: gnu: Add compiler-macro-notes., guix-commits, 2022/06/30
- 11/29: gnu: Add sealable-metaobjects., guix-commits, 2022/06/30
- 15/29: gnu: Add polymorphic-functions.,
guix-commits <=
- 20/29: gnu: sbcl: Enable sb-gmp, sb-mpfr and install shared library., guix-commits, 2022/06/30
- 21/29: gnu: Add sb-cga., guix-commits, 2022/06/30
- 23/29: gnu: Add sdl2kit., guix-commits, 2022/06/30
- 27/29: gnu: Add cl-sdl2-image., guix-commits, 2022/06/30