From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29816 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:32:48 +0000 Message-ID: <4eb30ae54aea41cd9fdb2aa207f4b96e@unibe.ch> 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="13034"; mail-complaints-to="usenet@ciao.gmane.io" To: , Original-X-From: pandoc-discuss+bncBCZ27W53TUFBB45J66GQMGQEVDS47FY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Dec 18 13:32:53 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f60.google.com ([209.85.128.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1myYtR-0003Cn-Md for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 18 Dec 2021 13:32:53 +0100 Original-Received: by mail-wm1-f60.google.com with SMTP id n41-20020a05600c502900b003335ab97f41sf2331719wmr.3 for ; Sat, 18 Dec 2021 04:32:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1639830773; cv=pass; d=google.com; s=arc-20160816; b=mXqWj8F+MrPuAG7SJX3TDoUyktWMvnX8pg0d9nhv9WJ0YpdD1it3ULNnMNtwSK8Hyn 0dbMmUZKWqag+sjCd2EgX23gidGY9jxkjVinEG0A58I7peE8hXELBdjrPsmLrlGePwel EJMbRXfdcnQ6z6wnVrx1LokatHnzK1ZwmsmxFI7a1L2ckPlc47T5w1Vm/IXZt5lVGZgs BK5Zm0BLSBD82dGQTLBvWQNvB9F6U0vwzD8txv1T7aAf7NLh2T1I2GFnE4NrJs4KLWHf a+wxawGKoXJApHUqKZC/mWy97nQS+lX0gyJ4hpgxOh8oQdnNTOz0Qrp/xSPiUHOz8xdZ RcCA== 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=3f2qeT1JqVPBAx/ftKNGy5pjQFmpFRxutOVrvMATwVM=; b=BLFFySIo0lqCxa7O5gDICuWGO5JG8vpn1RZ3fzTzuFtQZTzGftwg5VHz7O418V4BCE 7b2Kck9QfW5fA+HTBlV1Rf2HUfh0BfPxY61sZU7lNbrXppKKyzV1CUtbIKP+ZlsSSI0r OSXjW5WIz2/kF/u1AK7HU4dfWQlsb+oYjbOYrwNsj8W5qIet82Sxjy4tzgkYiEgsoTfL JUiHmJv3DFIe2rkYugpNiZYmt4RbeO6ehozthFgB8oPYpDp9azP1YJ1mIZG2KzpQjYyR QcQhktqWGg2YQNIIRPuQupwC8EfyrVcA8nOLldEwuc906o0CGme6Tz3i3wPR1DKWDocv k9ew== 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=3f2qeT1JqVPBAx/ftKNGy5pjQFmpFRxutOVrvMATwVM=; b=hKgx8otrDfKSlx+0tNlno1t4x+OJkvYrciTdUIAIBbbg+fywKHojtGT/+sT4fHYDFs ELppnF3TV3sF6k5jzKdLrUDXG3/F0mzsOsScNCmk8u5iHn5GBy1VXfc0zBvzPToHJsph WI6xiaFEWcXEkm3OA7ReYQXBfTN166pvQGAnl/77zoTMHQQ5KXJsLbrdIWtO502vFkaJ B0sUJ2FElx0rkb6ax0nNifoqxd7Hnt6GGgMcpJ2/zW+Ka4hkpa9CvegYxXFIrVAhqh2j 9kQdkFRl88bWaQPL1pw2hftkIfu/7wP1PQ4/bOXNuJ8Ko6HpnN 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=3f2qeT1JqVPBAx/ftKNGy5pjQFmpFRxutOVrvMATwVM=; b=7b19AzRSq3Q5XC5gFn7ozVgyyjSab8JmIR5+988gDFA+5lUAYs9WmPkztDi/ISs9mb ZlAhbSnXfDOacydgjBD2B8RfFleQGuzYWZ9VO8hDBLk3RLMsTXZGzlsL+93kvaOSW76b gs5QB6L2oBpFaZFpwiFiYWFw7ElCy1Lvfngs/xbfNM4tKw2liAgYSXYtgryMuhHcAZZT vPiwMkAXs3hfLSD63WaP/2LcAsSKHmKVWRVJ1ow8XxQoZiaFe28WXdecM2e9rllpZn2c n/CDy Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533JfVX9miJW8sS6eYKa6X9QE2fAPZYwmkCIZJAyrMPQT5eMi11o wOSTK8hANSdbdVdqz2cwKcI= X-Google-Smtp-Source: ABdhPJzRApzh/DfwPzu/Dik/CLGs5aAlSIon2HCh92l3+7yHsG8sSIbDXrE4Kk18kqRPntZ20IB1VA== X-Received: by 2002:a05:6000:1867:: with SMTP id d7mr6168458wri.21.1639830772986; Sat, 18 Dec 2021 04:32:52 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:5111:: with SMTP id o17ls1237640wms.1.canary-gmail; Sat, 18 Dec 2021 04:32:50 -0800 (PST) X-Received: by 2002:a05:600c:1c9f:: with SMTP id k31mr7575339wms.159.1639830770762; Sat, 18 Dec 2021 04:32:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639830770; cv=none; d=google.com; s=arc-20160816; b=Jm4cZBkfgTpCcciHQU5SiL7PGZT1VIMUb2BQarVbXf22bFLHHb/RgVW+kd39pSnTkg 4yXGAy2VzBqQ2AsFqFNluRFAqriYbd/2/SFcPQQE7vplZihPasVJFzLv8Js2NSADf59C 0zuDYRhTZcRvvMFyJ28qgu/gKf3ZxHXFxGo8Pt69SKIpkdkJVPq11SMOxOYK/oEFX+hH sTk1lU/pe9x1nGBCNkwaGRDKj5AO+uyMKpIeL6BS5lLAS5QP5G1coh0Bwc7MnkJyijPG wj2MY4hXS6JotdzaWB7sw6iGZy8/AwKlvGXyMcvaPvUzzLHT9b5qxrIzKJjY8jQmmyYJ o3Tg== 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=Mks9gUYGlZQijGoLFF3Yj3KCt6wwY25wnhlfJSXS9ww=; b=oKOSVjZW3vKTO8on2OaIzQg9xP8BBvwZP3zvWRuYxFxnn0ttHX8ChiYZFWCqYP1+84 k1ce7zU0WJx72sF0uBTlNbZegvV+MTdHTV8tkGFx/BZjfLvW5fTOwmc7j3O7BDlns9jE 2gAR+foTTplYmtXE8dqgrVlf880/XW7WDOOVfw/Qbd/rj1OvOenNjQJh66uFKoawZvFN s45/G/2mwY350u8CAe09usmU62UzlC+KAuMfYE7jBvwsD0ywUegkjPYKuU/06Q+nUlbL OITZ7Rzc4tOIrXu3odVDq5uUFWDcDLR9EMLwdBPteP4TltDL4F00Mk5m3ejbcjfM4gUQ 3aNQ== 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 c5si481933wri.7.2021.12.18.04.32.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Dec 2021 04:32:50 -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-04.campus.unibe.ch [130.92.13.146]) (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 7606F500074; Sat, 18 Dec 2021 13:32:49 +0100 (CET) Thread-Topic: custom writer with haskell Thread-Index: AdfzTndxOAbsiG31S/eqNstaefQe6wAP4AcAAB5OFzAAAPwvaw== In-Reply-To: Accept-Language: de-CH, en-US Content-Language: de-CH 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.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:29816 Archived-At: Needless to say, having Haskell available via pandoc without a local instal= lation would be awesome. Also for filters. But maybe there are simpler ways= if that entails to much additional complexity. ________________________________________ Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org im A= uftrag von denis.maier-NSENcxR/0n0@public.gmane.org Gesendet: Samstag, 18. Dezember 2021 13:06:07 An: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org; pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Betreff: AW: custom writer with haskell 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. -- 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. --=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/4eb30ae54aea41cd9fdb2aa207f4b96e%40unibe.ch.