From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29814 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: custom writer with haskell Date: Fri, 17 Dec 2021 14:35:10 -0800 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="15615"; mail-complaints-to="usenet@ciao.gmane.io" To: denis.maier-NSENcxR/0n0@public.gmane.org, pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBTVB6SGQMGQEPACS5HA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Dec 17 23:36:02 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pj1-f64.google.com ([209.85.216.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1myLpZ-0003lT-VX for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 17 Dec 2021 23:36:01 +0100 Original-Received: by mail-pj1-f64.google.com with SMTP id i16-20020a17090a059000b001ade0b46a81sf4653674pji.2 for ; Fri, 17 Dec 2021 14:36:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1639780560; cv=pass; d=google.com; s=arc-20160816; b=d+6a5wS7T5ZRimCVxVHu5oDW6cao7dqq9CjYbntaOsMNt3wjmT9Vfesxz1TxsYbngt uOVvAdNci1XUS3FEaZUR/pBCiNz0646vy9BuIPnIHBzwWQrhLSHkWTkzDmqjEbVfwS8D +OUtrBBdKw8cIujMu5/WSrGQch7tV5d1SG5fNcb3uYKcokHNNBlFSwUma96FJ6UOTnIK 8yKk16bxXue6fblA35SO48l2HMmksovNZ5A9o10iJlBREvTk3F+Jf+d2/dU5yKsugO2E lOn3+8jG1Ao28MjfaiLFWDEAxrVt9dNvN5Vlz/WLqsYzdXwbzdEj4ObEhrSvSPAYRz0c zWxA== 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:content-transfer-encoding:reply-to :mime-version:message-id:date:references:in-reply-to:subject:to:from :sender:dkim-signature; bh=g/7p/Fm3Im1R01pWXA1yhekjkl1+ibxGWQX4tvsL8oY=; b=qoliUiYWBp53/ZImr7x1yviiliEn0o98y2ZPO9jggnBJgRliyr7nUm/88MlIl+1A4P u/Pl7mvrXQK1h+HBl4unwn7x5NQFWvZl5bMH0WRH0n9QWGsOqFFOeLgaHQtSPHID5ws4 BbXMn7Vhe1gRVA/xXDQ6rInS0uoaB5vJQHrkrfpS92P/QaQwyYt++aANkPPPRQTQTKNY v1iCIeuya1COXdIaxzEbdbzkdb3LGIgQmULEVnVqJllmdN5x4qWQJVhuZarZ5x8Bx1D2 b7qcF//8JDI9wkOjod1YfIxzB8fRI4bzwXnEhvsUVPEj/H/sJTBWn04d+VEXM2juIYWN ZUGA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=PZR2Kzv8; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::532 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:content-transfer-encoding:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=g/7p/Fm3Im1R01pWXA1yhekjkl1+ibxGWQX4tvsL8oY=; b=GuK7wNcEKiPbSIU7Xg6Rq197bZCRSnk5bPSCyVZh6NCfT25zh8EGfXhepCf5vGZ8/d 0FxFM3wWU78LTff5ffXSa8T39I5qjyW20wg9s/UdFSkyzIp0FXSXDL7sTXrxuURzxaAA SJJLah/kbUtQO67W7GhJKV+5IrRG0jEQnbLUp6k9pY5GPGfwpj8S56KWQ6OPsdssQNyg rGPs6KJLtmVT0RYdlpkZaZtVzNnyMMS4aKCAmcgWjFqx56Ip9J57kEkwwmDDfXiT8PEj 08f/mT+7JOCJRqPVbEHuPrRXm1Uwl+pBz2TUIpgVj2Dd8ff1yVwqg+lYmknDxI4a4K4B rOTw== 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:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to :content-transfer-encoding:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=g/7p/Fm3Im1R01pWXA1yhekjkl1+ibxGWQX4tvsL8oY=; b=vdw4e+PA6G3D09X25/7o3hzJ9EV8UIY5Uu/AUTUf0Fz7RK4t9bTnWtU09Jqg8si91w F3bxwEIBNgbQdWdXdaCiCUe0lZ4mimNKC8/ZQNv334RL7Ie8hJgwgpOYaXlfpQBxqm7F yslQ+FQsbtRv9eBwxTOymp10H/kHdD08NpxZ92mGdwSAtDe8IxMT14AyQLJd56gc1+Ds HMF0DMX7S8Qyf7hiwJ2qCaCG3p70a5zZJIzQyLTCAhfykP0hbvOaIk5C9QJBc4IaLM/t 1Z3hRATyuYOeMA3MNL46fNiONVFmuQ2a4bu1VXqKDHxSFCsHBwfvZ1n9fKBxMmEb Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532LkxM9zZJ9vIZQgmlKxEejJz7+Y0qo9XMCavNnsgcFk/3edBDS MWIi5LdLOF/J/SSRVx2yCZg= X-Google-Smtp-Source: ABdhPJxmokH/VKrUrtbFK9zJAn1gRbOXgAs+FVs6jViq8fqfFoMLur97imoaNxMh3Xeabpelis/Kkw== X-Received: by 2002:a17:90b:3d6:: with SMTP id go22mr6139723pjb.221.1639780560227; Fri, 17 Dec 2021 14:36:00 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a63:9209:: with SMTP id o9ls669398pgd.0.gmail; Fri, 17 Dec 2021 14:35:58 -0800 (PST) X-Received: by 2002:a62:e508:0:b0:4a4:f06f:1cd9 with SMTP id n8-20020a62e508000000b004a4f06f1cd9mr5090633pff.21.1639780558257; Fri, 17 Dec 2021 14:35:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639780558; cv=none; d=google.com; s=arc-20160816; b=AjDLQ1aY0OkBToadMMh1gE1zEBv/fI2sOeAYO0h2b878DekKpLPnCvCjDJX7VWc9wX pJsAT9nqUd+In9fHfeIQ0fVCANssWPc89k82mwtWZy5r4KTNIub5ey7dsJtM33WB3gcI xhArK8Fzsyr7t8OqQ1KYURdt7eeyUY9U+FUAf3MnzrbOfccJAk08gCjAsvydfZT8LU74 BtQ1ZhKmTuEq6tXTFqrewZ81+U5UiKMdeJ5SPVEKLvCy7a1oisr+B2WeNPUxJRs/ByyY JdZxg2IMiiXzepv88GXy69jHBuGaYTVhP2HN7DI93k67UFzpBPf08jmjrxrYGBvoU0j7 4mhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=xDvwiMga4jGaKjFVC828uTMix54KZkQ0tI5XhmdtkiY=; b=T7IOVMwcpxt2vZrzrR9hCZxOPkPjtIs3laFLHlGKLAZUQ1qp1ccbHwYIoqyK2me4sG drTW9ejjEPVjqb20PRncCx1ObiNogM29PI9DOj/wUL1/gBUlpmO5+BSgZgcbdYZZWA0a vqFpLrqhinqi3sfsiSVt3IbEho7a8W6Sh5+1czI3QSPksb3GPoQ1NImRU198Hjb8CiJb OKrofSnUCepVQQ/U8CdPl4tpOVfG02+xaL199wGW4Yk46q96GqqI+LATYbj7M/7jU7g8 rVcDzC6xdlKOd7fzAporBcHfJIBLp16FbLBYFbohSLLTMPqJ7D+rPk6kVATrpkDc8l/u /zKg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=PZR2Kzv8; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::532 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com. [2607:f8b0:4864:20::532]) by gmr-mx.google.com with ESMTPS id y15si337226plp.2.2021.12.17.14.35.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Dec 2021 14:35:58 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::532 as permitted sender) client-ip=2607:f8b0:4864:20::532; Original-Received: by mail-pg1-x532.google.com with SMTP id 133so3437870pgc.12 for ; Fri, 17 Dec 2021 14:35:58 -0800 (PST) X-Received: by 2002:a05:6a00:811:b0:4af:d1c9:fa3f with SMTP id m17-20020a056a00081100b004afd1c9fa3fmr5271774pfk.21.1639780557401; Fri, 17 Dec 2021 14:35:57 -0800 (PST) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id z23sm4502930pfr.189.2021.12.17.14.35.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Dec 2021 14:35:56 -0800 (PST) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id EF53DA1D6; Fri, 17 Dec 2021 17:35:15 -0500 (EST) In-Reply-To: <51f4c7e7b63344adb5967a8bfe3e50c8-NSENcxR/0n0@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=PZR2Kzv8; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::532 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org 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:29814 Archived-At: 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 > > --=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= 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/yh480kfsqq2735.fsf%40johnmacfarlane.net.