From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erABq-0003wV-Ld for guix-patches@gnu.org; Wed, 28 Feb 2018 17:27:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erABj-0001gC-77 for guix-patches@gnu.org; Wed, 28 Feb 2018 17:27:10 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:58335) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1erABi-0001fq-TE for guix-patches@gnu.org; Wed, 28 Feb 2018 17:27:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1erABi-0008Gi-I3 for guix-patches@gnu.org; Wed, 28 Feb 2018 17:27:02 -0500 Subject: [bug#30657] Add support for file-like objects to the Prosody configuration Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erAAV-0002pg-KD for guix-patches@gnu.org; Wed, 28 Feb 2018 17:26:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erAAF-000838-1R for guix-patches@gnu.org; Wed, 28 Feb 2018 17:25:47 -0500 Received: from mail.lassieur.org ([83.152.10.219]:51748) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1erAAE-0007wv-Ds for guix-patches@gnu.org; Wed, 28 Feb 2018 17:25:30 -0500 Received: from rodion (88.191.118.83 [88.191.118.83]) by mail.lassieur.org (OpenSMTPD) with ESMTPSA id a49595be (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO) for ; Wed, 28 Feb 2018 22:25:26 +0000 (UTC) From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Date: Wed, 28 Feb 2018 23:25:25 +0100 Message-ID: <877eqwhhuy.fsf@lassieur.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30657@debbugs.gnu.org Hello, These patches add support for file-like objects to the Prosody service configuration. The idea is to replace this mechanism (which is used very often): (plain-file (with-output-to-string ... (format #t ...) ...)) with this one: (mixed-text-file (flatten (with-tokens-to-list ... (push-tokens ...) ...)) The point is that tokens don't have to be strings. Comments are welcome! Clément