From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29815 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.text.pandoc Subject: AW: custom writer with haskell Date: Sat, 18 Dec 2021 12:06:07 +0000 Message-ID: References: <51f4c7e7b63344adb5967a8bfe3e50c8@unibe.ch>, Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13477"; mail-complaints-to="usenet@ciao.gmane.io" To: , Original-X-From: pandoc-discuss+bncBCZ27W53TUFBBMM566GQMGQEVKEAZCA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Dec 18 13:06:14 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ed1-f62.google.com ([209.85.208.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1myYTc-0003Jh-6C for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 18 Dec 2021 13:06:12 +0100 Original-Received: by mail-ed1-f62.google.com with SMTP id w9-20020a05640234c900b003f82bc9acd5sf969541edc.6 for ; Sat, 18 Dec 2021 04:06:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1639829171; cv=pass; d=google.com; s=arc-20160816; b=cCipX8QQMiFz3AuOv7WDV65/1i+jBn4BMkeajlmM4c6n118MUg/YSga64DGjqCf9Ku RzeNkij+hkHvlXo2aTTFbMs+CetfBJwYJ+kXuHAV7FeV5aW9Dn/8OyT5eKpbD4sMWoyu /YptNErZTIaYavvLX1ZGmv+NVYBhjCRMd/kZG/We91w31LwZEhE8a/y1Fj9/gR8rx9Sd dxsuXqKyRkojJN41Ch6ODRAIQbDCnZ1ovSGDdoLqbyRH5wvLm1FIyVIYKm2QVfIfsLr0 huF4E7PK1cung/YdMV83a3+obaoD73hNb7ALCMjtteLpypb3a4aIO/QrhRi/fM1vzL2E o2yw== 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-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:to:from:sender:dkim-signature; bh=ZNsubN1s77BZbziaVXCeIvjpFI8F4SlvddHOeH0Auzs=; b=XSuYxMuN52sZaZ2F6kFMqx31hHMUSeDNjo0rVWu5ryX+8xAYOmulW6aBiRFC1qOHbM Ry7gOAGY+YITo5DuxLd4vi3QBXEdTm4kFezhj4WwGZZDy75q/FlN9X5g6wBrAE44Ueq1 LTCbQw2RUIJFUFnkjTGjCtGQzsfzGcfIFFB0OVZAY0OfESfG9Vji+RIWOdzJivGSkxGh xFGv+VVZEWehx2/6rhI/JfUoqjJDI4dBoHmjunEEXqY8e+TiHKE6M42xjnfzBsYIOo3z 5MFmGmPr2Q0eqAIOYygY7DiZXLbxwblM/LXlcr7nweiOlVj6dR72LFR2Xb4jOdWs5Aa1 V+mw== 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.83 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 :references:in-reply-to:accept-language:content-language :content-transfer-encoding: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=ZNsubN1s77BZbziaVXCeIvjpFI8F4SlvddHOeH0Auzs=; b=NNcaJ2WT/dciqxOQ9Grwq3XkvXEav5N7HA1yNm6408BNjurHrhEU903PQutDr9L3o9 +CMSQpwhjoO8NhUGV0UGuaelU/f+ioBKvh1W2u7JxlMNL24tIDJ7YkEFZ+VQgp4Bb0Dx mPVS2xiy5HcUNzAuqyVmM4O2C3D1h5qfSCab0nu+p3imcj8QG0B4fCkZR4eF44jmbNZd K1CTxGuA9VAZBH2npc9KkHnihqG/EHdB058pHPJf+e8BYJYAkKt9Z/PWI6sFNNBK1D7F /ikWlQQFN06RQfw7oijDEXbSIVMp+9AJ0WlVHh0OB0gxn3qWOx 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:references:in-reply-to:accept-language :content-language:content-transfer-encoding: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=ZNsubN1s77BZbziaVXCeIvjpFI8F4SlvddHOeH0Auzs=; b=vajSDXg+DB2VNYg/UjWgqFz8XSBcX46ue3vTohfZpEt3AtxuxrkJvnOIcxoSAEokdU bjLOqXwb1immwwdtHWpTy4NOyKJ/oyt5xuuhySOI52XmSnDbZr9hjfEtRcjYqX1SK8NZ 90JbXG2LpsKfsO60Rg2OGq1I1xoDxixA0V+wCngqyqo7jSYKHv9OdtRwqtGA+gzAGCJl HAI4LPCKMW2J9RVkw+lxitma+cAj4x+nZ9I389pd524sRwrwB/HFm6mIpJ3oiDmID53G 25ENq Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532gxIf2tIRbVjGutNws/OhtSrt+9df9AoOIXUhuGIJRR35altgB /lGo8KAusLcTQNi/QfG3oTw= X-Google-Smtp-Source: ABdhPJwkJb47nJk92qfTAVE1ktiSvg5Kd2oNoQYh3rxV+qXn9UietzpMjvrhyEikwsquxto0h3VLYQ== X-Received: by 2002:a17:906:4904:: with SMTP id b4mr6119193ejq.174.1639829171500; Sat, 18 Dec 2021 04:06:11 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:907:7f9f:: with SMTP id qk31ls1000964ejc.4.gmail; Sat, 18 Dec 2021 04:06:09 -0800 (PST) X-Received: by 2002:a17:907:1c07:: with SMTP id nc7mr86867ejc.592.1639829169069; Sat, 18 Dec 2021 04:06:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639829169; cv=none; d=google.com; s=arc-20160816; b=ZS8WN0S4gbA5aybqs8JRp/cliOw2XWcopFNQNskhxx1GGX+mVMHRvVXwF1bgDUtu+C RFWu/3e62ppvM9Nyrun2BjwWNEHZWjZqHJc7xZQJn/Gpe4aA3UwOAMsTbk0V5LS9xq63 Nqw/+yO1VnSRo3lTUFGzJw8CotkMTznShuscJjmtj8qpFeRoFA6DDpc9S/fkX5gdCgfC HONVbvKtff75So9ieEZ3HmK/hPVvtmC5ibmLjSVqhkVxFhCzai2mGlfG4odjZH5yd8ju 5XPRYjZUfYugvHLLOcjBydKo86H9Q6HQK7CpZVDpHH5T6FitZ5ceb8Mqzfqwl9QZvpqK n3oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:to:from; bh=J5/rK3PQcea6+uSXPZX94HDSwhUS70vzOUkuuPBFV1U=; b=EamVqZ46bIGdM/hhvLtEW7uFcnKsNRXnPT5ryZnzrRQ5AaLa/vzu703IMpoz20CMNW vzhmEe8hgQHGVGg/0NnbVDhaLV9/+R8O9nmnccZYKvVR70D3sfceO7dDYUghvw/ZPjL5 IIFFw1HISl7xbMbyH0rRSon7oMJDiVwLsPuF6eUcOzdBKx+E5occfC+sOYU5/sam2Dew em+ivLfo7z3mPbE5WP2BuMKlPoGoc7A6fxF7a4FzMnapL1ec87ucFG441mHpjvtnfS6V h/v1coIrLEok44nAPqw7473di/T8lfKDWktQdYwoByFkYztpcSXfOMFW8rRUCtGYtCnF teRQ== 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.83 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-lb2.unibe.ch (mailhub-lb2.unibe.ch. [130.92.0.83]) by gmr-mx.google.com with ESMTPS id e10si627405edz.5.2021.12.18.04.06.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Dec 2021 04:06:09 -0800 (PST) Received-SPF: pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.83 as permitted sender) client-ip=130.92.0.83; X-Virus-Scanned: By University of Bern - MGW Original-Received: from mail.campus.unibe.ch (aai-edge-03.campus.unibe.ch [130.92.13.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub-lb2.unibe.ch (Postfix) with ESMTPS id 03759500074; Sat, 18 Dec 2021 13:06:07 +0100 (CET) Thread-Topic: custom writer with haskell Thread-Index: AdfzTndxOAbsiG31S/eqNstaefQe6wAP4AcAAB5OFzA= In-Reply-To: Accept-Language: de-CH, en-US Content-Language: de-CH x-originating-ip: [130.92.13.161] 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.83 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:29815 Archived-At: Does that have to be included? Can't one rely on Haskell being available? I= mean, just like with Haskell filters.... ________________________________________ Von: John MacFarlane Gesendet: Freitag, 17. Dezember 2021 23:35:10 An: Maier, Denis Christian (UB); pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Betreff: Re: custom writer with haskell Well, we could build a Haskell interpreter into pandoc (as well as a Lua one). That is possible by including hint: https://hackage.haskell.org/package/hint This would add even more to the executable size and compilation time, of course! I did something like this with gitit plugins, but there are complexities, esp. involving package search paths and the like. writes: > Hi, > > currently, custom readers and writers are written in Lua. Would it be pos= sible to add support for custom writers and readers in Haskell ? In my case= it's not that I knew Haskell better than Lua, but sometimes it would be ni= ce 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 t= he existing writer would be much easier than writing a complete custom writ= er. Sure, it's always possible to make the change and compile pandoc from s= ource, but maybe there's an easier way ? > > Best, > Denis > > -- > 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= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/51f4c7e7b63344adb5967a8bfe3e50c8%40unibe.ch. --=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/ee9cbe9414d947799907c62bce1408a8%40unibe.ch.