From: Robby Zambito <contact@robbyzambito.me>
To: Maxime Devos <maximedevos@telenet.be>
Cc: guile-user@gnu.org
Subject: Re: Unable to import (ice-9 psyntax)
Date: Thu, 16 Feb 2023 08:39:23 -0500 [thread overview]
Message-ID: <874jrlbt25.fsf@robbyzambito.me> (raw)
In-Reply-To: <00df9b71-69bc-c56d-b58a-a9c96b872ab5@telenet.be>
Maxime Devos <maximedevos@telenet.be> writes:
> What are you trying to import (ice-9 psyntax) for?
I am trying to write a portable R7RS library which does a relative
include for its implementation. The code can be found here:
https://git.robbyzambito.me/robby/meta-json.git/tree/lib/zambyte/meta/json.sld?id=334e09f3388a74b5982138b57abb2021e12cf598#n66
The include-library-declarations (and include) in Guile work relative to
the working directory rather than from the calling file (contrary to the
documentation in the Guile manual), which is not desireable for a
library. Instead I'm trying to use include-from-path, which is defined
in (ice-9 psyntax). The problem is that include-from-path seems to be
available by default in Guile, but it was undefined when I was using it
in my R7RS library.
Asking your question made me realize (ice-9 psyntax) does not actually
export include-from-path though. In a nearly complete shot in the dark,
I instead imported (only (guile) include-from-path), which actually does
the trick!
https://git.robbyzambito.me/robby/meta-json.git/tree/lib/zambyte/meta/json.sld?id=7bf0fa24e0df6949d2e1f6c57fb67539d674810a#n67
This works as I wanted :)
Thanks,
Robby
prev parent reply other threads:[~2023-02-16 13:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-15 2:14 Unable to import (ice-9 psyntax) Robby Zambito
2023-02-15 6:43 ` Damien Mattei
2023-02-15 20:18 ` Maxime Devos
2023-02-15 23:48 ` Damien Mattei
2023-02-16 11:18 ` Maxime Devos
2023-02-16 11:26 ` Maxime Devos
2023-02-16 11:23 ` Maxime Devos
2023-02-16 13:39 ` Robby Zambito [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874jrlbt25.fsf@robbyzambito.me \
--to=contact@robbyzambito.me \
--cc=guile-user@gnu.org \
--cc=maximedevos@telenet.be \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).