all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Felix Lechner via "Development of GNU Guix and the GNU System distribution." <guix-devel@gnu.org>
To: Tomas Volf <~@wolfsden.cz>, guix-devel@gnu.org
Subject: Re: Proposal for removing some serialization limitations of define-configuration
Date: Sun, 23 Jun 2024 09:37:02 -0700	[thread overview]
Message-ID: <87le2vlioh.fsf@lease-up.com> (raw)
In-Reply-To: <ZngLGtANMtqCPbtg@ws>

Hi Tomas,

On Sun, Jun 23 2024, Tomas Volf wrote:

> 1. I need the serializer for `name' field to wrap the output of other
>    serializers.

Is it possible with nested configuration records (which I remember are
complicated to set up)?

> 2. I need to serialize key-file and key-type as one (since they belong on one
>    line).

Yeah, I've had that issue, too.  I am not sure the field-based
serializers are a general solution.

> I did not figure out how to achieve those except by a custom
> procedure: This has the obvious maintenance issues though, so I think
> it would be nice to be able to utilize the existing serializer
> infrastructure for this

I probably find the custom serializer, which is in one place, easier to
understand than passing the record around, but I'm ready to be convinced
otherwise.  In any event, I'm a newbie so please feel free to disregard.

Kind regards
Felix


  reply	other threads:[~2024-06-23 16:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-23 11:46 Proposal for removing some serialization limitations of define-configuration Tomas Volf
2024-06-23 16:37 ` Felix Lechner via Development of GNU Guix and the GNU System distribution. [this message]
2024-06-24  6:25 ` Attila Lendvai

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87le2vlioh.fsf@lease-up.com \
    --to=guix-devel@gnu.org \
    --cc=felix.lechner@lease-up.com \
    --cc=~@wolfsden.cz \
    /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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.