On 7/14/26 19:07, civodul wrote:
+ <system76-power-configuration>
As a rule of thumb, we generally don't export record type descriptors
<https://guix.gnu.org/manual/devel/en/html_node/Data-Types-and-Pattern-
Matching.html>.
I experimented with creating better graphs[1] and my first attempt
failed miserably, because I started with a new `mygraph.scm` in which I
copied the `export-graph` procedure. But that procedure looks like this:
(define* (export-graph backend)
(match backend
(($ <graph-backend> _ _ emit-prologue emit-epilogue emit-node
emit-edge)
...
and I could only make that work by exporting `<graph-backend>` in my
local guix clone.
Is there a way to write such a procedure that matches a record without
having it placed in the module that defines the record?
Thanks,
Hugo
[1] WIP for better graphs: https://codeberg.org/guix/guix/pulls/9725