* [bug#67760] Add the guile-srfi-232 package for curried procedures
@ 2023-12-11 1:14 無無
2024-01-05 16:25 ` bug#67760: " Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: 無無 @ 2023-12-11 1:14 UTC (permalink / raw)
To: 67760
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
(This is my first submission to Guix)
This package adds Wolfgang Corcoran-Mathe's library for curried procedures.
Its specification:
https://srfi.schemers.org/srfi-232/srfi-232.html
The SRFI-232's repository:
https://github.com/scheme-requests-for-implementation/srfi-232
Many thanks,
Yuval Langer.
[-- Attachment #2: 0001-Add-the-guile-srfi-232-package-for-curried-procedure.patch --]
[-- Type: text/x-patch, Size: 2861 bytes --]
From c88c0502b2036c7a33fcb9c402de69eb14634831 Mon Sep 17 00:00:00 2001
Message-Id: <c88c0502b2036c7a33fcb9c402de69eb14634831.1702256938.git.yuval.langer@gmail.com>
From: Yuval Langer <yuval.langer@gmail.com>
Date: Mon, 11 Dec 2023 03:00:50 +0200
Subject: [PATCH] Add the guile-srfi-232 package for curried procedures.
---
gnu/packages/guile-xyz.scm | 51 ++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index f3fc131aaa..cf91a62e47 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -3751,6 +3751,57 @@ Either represents the concept of values which are either correct (Right)
or errors (Left).")
(license license:expat))))
+(define-public guile-srfi-232
+ (package
+ (name "guile-srfi-232")
+ (version "0.0.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/scheme-requests-for-implementation/srfi-232")
+ (commit "c3f580d220778cd71492aba4fdd0c7040968e705")))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0lp4zcqjjj6hwfh3ix71wak1nffgg4npzsg7cdxfn9hf6iwf9xby"))))
+ (build-system guile-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases
+ %standard-phases
+ (add-after 'unpack 'move-and-delete-things
+ (lambda _
+ (let* ((srfi-directory (string-append #$output "/srfi")))
+ (mkdir-p "srfi")
+ (with-output-to-file "srfi/srfi-232.scm"
+ (lambda ()
+ (display "(define-library (srfi srfi-232)
+ (export curried define-curried)
+ (import (only (guile) import)
+ (scheme base))
+ (include \"../srfi-232.scm\"))")))
+ (for-each (lambda (filename)
+ (delete-file filename))
+ '("test-body.scm"
+ "test-chibi.scm"
+ "test-srfi-64.scm"))))))))
+ (native-inputs
+ (list guile-3.0))
+ (home-page "https://github.com/scheme-requests-for-implementation/srfi-232")
+ (synopsis "Flexible curried procedures")
+ (description
+ "Scheme lacks a flexible way to create and apply curried
+procedures. This SRFI describes curried, a variant of lambda that
+creates true curried procedures which also behave just like ordinary
+Scheme procedures. They can be applied to their arguments one by one,
+all at once, or anywhere in between, without any novel syntax.
+curried also supports nullary and variadic procedures, and procedures
+created with it have predictable behavior when applied to surplus
+arguments.")
+ (license license:expat)))
+
(define-public emacsy
(package
(name "emacsy")
--
2.30.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#67760: Add the guile-srfi-232 package for curried procedures
2023-12-11 1:14 [bug#67760] Add the guile-srfi-232 package for curried procedures 無無
@ 2024-01-05 16:25 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2024-01-05 16:25 UTC (permalink / raw)
To: 無無; +Cc: 67760-done
[-- Attachment #1: Type: text/plain, Size: 571 bytes --]
Hi,
無無 <yuvallangerontheroad@gmail.com> skribis:
> From c88c0502b2036c7a33fcb9c402de69eb14634831 Mon Sep 17 00:00:00 2001
> Message-Id: <c88c0502b2036c7a33fcb9c402de69eb14634831.1702256938.git.yuval.langer@gmail.com>
> From: Yuval Langer <yuval.langer@gmail.com>
> Date: Mon, 11 Dec 2023 03:00:50 +0200
> Subject: [PATCH] Add the guile-srfi-232 package for curried procedures.
>
> ---
> gnu/packages/guile-xyz.scm | 51 ++++++++++++++++++++++++++++++++++++++
> 1 file changed, 51 insertions(+)
Applied with the changes below, thanks!
Ludo’.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1806 bytes --]
diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 6df9fc851f..75e3754046 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -3858,8 +3858,7 @@ (define-public guile-srfi-232
(arguments
(list
#:phases
- #~(modify-phases
- %standard-phases
+ #~(modify-phases %standard-phases
(add-after 'unpack 'move-and-delete-things
(lambda _
(let* ((srfi-directory (string-append #$output "/srfi")))
@@ -3881,14 +3880,14 @@ (define-public guile-srfi-232
(home-page "https://github.com/scheme-requests-for-implementation/srfi-232")
(synopsis "Flexible curried procedures")
(description
- "Scheme lacks a flexible way to create and apply curried
-procedures. This SRFI describes curried, a variant of lambda that
-creates true curried procedures which also behave just like ordinary
-Scheme procedures. They can be applied to their arguments one by one,
-all at once, or anywhere in between, without any novel syntax.
-curried also supports nullary and variadic procedures, and procedures
-created with it have predictable behavior when applied to surplus
-arguments.")
+ " This package provides an implementation of
+@uref{https://srfi.schemers.org/srfi-232/srfi-232.html, SRFI-232}, which
+describes @code{curried}, a variant of @code{lambda} that creates true curried
+procedures which also behave just like ordinary Scheme procedures. They can
+be applied to their arguments one by one, all at once, or anywhere in between,
+without any novel syntax. @code{curried} also supports nullary and variadic
+procedures, and procedures created with it have predictable behavior when
+applied to surplus arguments.")
(license license:expat)))
(define-public emacsy
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-05 16:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-11 1:14 [bug#67760] Add the guile-srfi-232 package for curried procedures 無無
2024-01-05 16:25 ` bug#67760: " Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).