From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29812 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.text.pandoc Subject: custom writer with haskell Date: Fri, 17 Dec 2021 14:05:11 +0000 Message-ID: <51f4c7e7b63344adb5967a8bfe3e50c8@unibe.ch> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_51f4c7e7b63344adb5967a8bfe3e50c8unibech_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26465"; mail-complaints-to="usenet@ciao.gmane.io" To: Original-X-From: pandoc-discuss+bncBCZ27W53TUFBBGNS6KGQMGQEPJ6XCRY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Dec 17 15:05:17 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f190.google.com ([209.85.208.190]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1myDrI-0006ek-Nb for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 17 Dec 2021 15:05:16 +0100 Original-Received: by mail-lj1-f190.google.com with SMTP id q19-20020a05651c055300b0021a259ae8bbsf715856ljp.4 for ; Fri, 17 Dec 2021 06:05:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1639749915; cv=pass; d=google.com; s=arc-20160816; b=cI+bzWt5lhBEv1RuBSaqJu7lcYgQJiZoyNexkpMVBjkUuj8Vbi030No6pOXqr7Gx7d /XSsEoADoK597s+9gd0r/aijQHor38c0+fRWbR6L5goOyBo9NhXhKV9R1UJyA2lUljT5 fxmFG4jf0cozpV+YhWQ5m9fl+gnCZK4LBIOxjCuPPTYYVrqupT1iPbxR0/2Zu641kgZk brIUnq3u1OHaXocDhLl1N0ygEf1HkRLtUstYkzKTl2O/6RmBIUkJXI8wmUJQwRGlAhp3 rzyCgtyKXBzrru1sbottghEqzS5Ex5xhUt9cRyqGCGZO541IScadtGgFOueO253zZeYz AxcQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:to:from:sender:dkim-signature; bh=NGmZOJT4tqs+mHS5MpoKKM8Pql7sU0oiTynksLsXNEY=; b=y1jvFcjmrdq6qmQLQG3tnEE/KAjRg/gvI1/yGpuvub3H16xEruTu5XO9bhomp7IKsQ kw4Eno2Nsd086Zk8ZhQ1SOVc2j0rjxInN5DASgbQ6CffaePIqvPKjfitKIad58GNN9hC oAv68QZdm9re1HhJni+C9Ct2EoOJuXeeLe2j2HWTAlMhboRFdLDMklB94zLjrPygS4wW G6JdCibVRkHFGYrAhZVzaHzWBeJ3GiAq9N+ea2p1sXF1pJNKC8M1BfC5n7k7Q+3BZI0z grPL7UHvtk+sxBMX2wzorx6mYVmXX9o0qicY/CdZp2WYu8Umv6GVPzyGONNWqRKYSgi6 35Ew== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.82 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:subject:thread-topic:thread-index:date:message-id :accept-language:content-language:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=NGmZOJT4tqs+mHS5MpoKKM8Pql7sU0oiTynksLsXNEY=; b=Y2rSCjst+A4X/AK7S3pI4hAKVdSFt7tlYhIsI7mrF3cwUrrj/QjR15h25FN+x0Lh0p yKiZIrZYr4vOBDZi87C3DMSg7UluDEoyTZZ9Mj2oKZK8NRa11M6cgLAqcCWjCtI7uDhs 5Mfx4rWWCGFz3LdtgTXDeetv0LIB5+2PigsyywwqxzvJwicIiDlX80nj3BbfVl0PUvFk 1Eh8KiXU8jyou6JX/vwlbdoWQa5VDMwul19aZxS9vE90eufFaatoukobOCita/AJVGzW hFJ9FXImaMedtlpLRGxnZ0pvE0IHo2bQ8xkBcs0HzAa5wHMDGQqRG75vmuTYewJRkdQD tmzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:subject:thread-topic:thread-index :date:message-id:accept-language:content-language:mime-version :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=NGmZOJT4tqs+mHS5MpoKKM8Pql7sU0oiTynksLsXNEY=; b=XB8c/hdcAWtokmMHhnAaBWo00X2AL+0nEFm3zp45Ot7HSTn+FMNUfB0J5Yk9XkLbsE Hh/nY8yZed+WS6uR92NWA2K2lRFrl8YKUMFcK1J2IW1fp2VrTvPH6Z8oFnhDtnYve/J6 srX307Oyqxy8vqEo/3nSdE8uWJcxzuFmC71TSYboGbafWsIYCKUdK5mpMEpbooWPJtmW Z9ZLZ6XSAbvSNvYvyLPHlMUAo7/87N0hAD8yyTZUXi9djIKkwh49mfMNUMJLsAAXKPyw IkxZKt1r0WoBuq1wkyLhSUCpGUQDUTv5Ar5RipJfW2dgMhNsNoACg8u6icv7pU3L Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531ThkbS8alrld5YQBd5QkJzCPDgOGbwSy3VQBYKav31OMfhk7JS MK6caBGQXRbphNrMKUIJiiw= X-Google-Smtp-Source: ABdhPJzlmTf7cdMO2lklNp66wScoDv5IcW4gYrt/Cw48e1L4ONBoBju3Bh3O3Fy+8L9e5UAdLqaIdA== X-Received: by 2002:a2e:84c4:: with SMTP id q4mr2923162ljh.266.1639749915675; Fri, 17 Dec 2021 06:05:15 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a2e:9b53:: with SMTP id o19ls120877ljj.2.gmail; Fri, 17 Dec 2021 06:05:13 -0800 (PST) X-Received: by 2002:a2e:5c04:: with SMTP id q4mr2959856ljb.334.1639749913163; Fri, 17 Dec 2021 06:05:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639749913; cv=none; d=google.com; s=arc-20160816; b=C1pMVyD0iYEgZLTRxH30ljRAVAnmO34t5RMOYfp6xkLHqhNGOidjAyzyQwIZgUmhO8 fYIS+GxClsodcWMxFw/GfQiZkRva8wvNybZeW4OaTf5+C1SUTinK2s26AHV/DtsZO3Va o7CIUreTbdnmafaT3zcgOOywiTBBLRF8ZNuEDx16FjduAKlGNeSELKTuCoG8+wcLfYBp 6s2E7XYI1szJh7nU5yRbxSaIDJ72y1QbsmnRbcxEMLBGs0XpvPhuvs9rIPDETuLcKqb1 QagsjgBFgNAg+LzPSJSRpC2+P0KrgaRswOf7+6G5VIJet1jPj85JWA4+HmBqM1ecGqn7 2x8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-language:accept-language:message-id:date :thread-index:thread-topic:subject:to:from; bh=l76ZPORDZ8tAbAKBjR7yRgIeDPVny21/MYKb4HAxx7I=; b=KMrOKOQWkBVcAjbKqMSOUUQ/FJgdfyB4I18oMv1wWVfqcx788k5akfPJLatgaMLxdb EgkRb1qxFqjFsZQsX9dxzYgXkciEL/ssh25LjUFcHmubSy5kIktOXAmQZycz0JbpVHOk U+wFiJ4f9x/q66a4zRVkDu2m4KpA9JLh7sUSdDsCMFCo2lY00s5Mk5LEzyLgb2S5Y806 ulIllinDrgkhB/VmzNO6J197VDMQgSvimWKbq6ISxgtB2LvywotsLaRgX/giJUtoiZG7 b/fprGMo0ysHRroqPB+GDAl+9Yq2eBdBiJ8qfw7iyt2uzmTWjDLdcUQCKmiZ+TtB64Do 0i3w== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.82 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch Original-Received: from mailhub-lb1.unibe.ch (mailhub-lb1.unibe.ch. [130.92.0.82]) by gmr-mx.google.com with ESMTPS id u19si449973ljl.5.2021.12.17.06.05.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Dec 2021 06:05:13 -0800 (PST) Received-SPF: pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.82 as permitted sender) client-ip=130.92.0.82; X-Virus-Scanned: By University of Bern - MGW Original-Received: from mail.campus.unibe.ch (aai-edge-01.campus.unibe.ch [130.92.13.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub-lb1.unibe.ch (Postfix) with ESMTPS id DDB145000DB for ; Fri, 17 Dec 2021 15:05:11 +0100 (CET) Thread-Topic: custom writer with haskell Thread-Index: AdfzTndxOAbsiG31S/eqNstaefQe6w== Accept-Language: de-CH, en-US Content-Language: de-DE x-originating-ip: [172.18.72.2] X-Original-Sender: denis.maier-NSENcxR/0n0@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.82 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:29812 Archived-At: --_000_51f4c7e7b63344adb5967a8bfe3e50c8unibech_ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, currently, custom readers and writers are written in Lua. Would it be possi= ble to add support for custom writers and readers in Haskell ? In my case i= t's not that I knew Haskell better than Lua, but sometimes it would be nice= if you could just tweak the default readers and writers a bit, say allow a= n additional attribute (see my question from yesterday). Adding this to the= existing writer would be much easier than writing a complete custom writer= . Sure, it's always possible to make the change and compile pandoc from sou= rce, but maybe there's an easier way ? Best, Denis --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/51f4c7e7b63344adb5967a8bfe3e50c8%40unibe.ch. --_000_51f4c7e7b63344adb5967a8bfe3e50c8unibech_ Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hi,

 

currently, custom readers and writers are written in= Lua. Would it be possible to add support for custom writers and readers in= Haskell ? In my case it’s not that I knew Haskell better than L= ua, but sometimes it would be nice if you could just tweak the default readers and writers a bit, say allow an additional = attribute (see my question from yesterday). Adding this to the existing wri= ter would be much easier than writing a complete custom writer. Sure, it’s always possible to make the change an= d compile pandoc from source, but maybe there’s an easier way ?<= o:p>

 

Best,

Denis

 

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc= -discuss/51f4c7e7b63344adb5967a8bfe3e50c8%40unibe.ch.
--_000_51f4c7e7b63344adb5967a8bfe3e50c8unibech_--