From: "Ludovic Courtès" <ludo@gnu.org>
To: Josselin Poiret <dev@jpoiret.xyz>
Cc: guix-devel@gnu.org
Subject: Re: Viewing derivation output in the store
Date: Thu, 28 Apr 2022 09:30:26 +0200 [thread overview]
Message-ID: <87pml1fywd.fsf@gnu.org> (raw)
In-Reply-To: <87v8v2g9tm.fsf@jpoiret.xyz> (Josselin Poiret's message of "Thu, 21 Apr 2022 09:44:05 +0200")
Hi!
Josselin Poiret <dev@jpoiret.xyz> skribis:
> As an aside: is there anything preventing us from having do notation à
> la Haskell? This could help bridge mlet and mbegin with >>=, which in
> its current form is impractical. Here's what it could look like:
>
> (mdo %store-monad
> (drv <- (gexp-derivation "myderivation" test-gexp))
> (output <- (return (derivation->output-path drv)))
> (built-derivations (list drv))
> (return (format #t "~a~%" output)))
I guess we could do that, though it seems to me like a marginal
improvement over ‘mbegin’ and ‘mlet’.
Ludo’.
prev parent reply other threads:[~2022-04-28 7:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-20 15:40 Viewing derivation output in the store Brian Cully
2022-04-20 19:42 ` Maxime Devos
2022-04-21 7:44 ` Josselin Poiret
2022-04-21 11:50 ` Brian Cully
2022-04-28 7:30 ` Ludovic Courtès [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://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pml1fywd.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=dev@jpoiret.xyz \
--cc=guix-devel@gnu.org \
/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.
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).