From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28632 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'Guillem Marpons' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: Announcing asciidoc-hs, an AsciiDoc parser in Haskell Date: Thu, 17 Jun 2021 12:58:43 +0200 Message-ID: References: <1cee20e4-c8f5-9f6f-9903-a2ae35c1dc28@mailbox.org> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4433"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCRMJJNTSUBBB2OVVSDAMGQEBHFNNSI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jun 17 12:58:53 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f187.google.com ([209.85.208.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ltpjX-0000xX-No for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 17 Jun 2021 12:58:51 +0200 Original-Received: by mail-lj1-f187.google.com with SMTP id t4-20020a2e78040000b029015d4e9229dcsf2505274ljc.23 for ; Thu, 17 Jun 2021 03:58:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1623927531; cv=pass; d=google.com; s=arc-20160816; b=nvVu/54JkG0NaT8gjBU149nwYleiGZAa+Y9HpwbqKtM1J9ea943g/LT/LaohMAw3xG cZtwcGMFTAyxVsYoassDSQl8jXcqfw2gyqCNl9PpVaqS3CtIwQKR8bBcmXMPiMnaLPPf DFnC1jtrWuDM0iWLbH0dJG+ZDecPSGPDlOf0ChQ+qf4lEVjf48R9J5jt+d089vNI5J15 sxzhdk4jJ4071YqyR7Hw1JAkgae0ryQpG+4DCi7d6cKLcB4ES0/RW5eXz+4M+EeDZvBA r/t1Q+HDO7POSDYDTo6u8bnx0zq8uLx/hb47CELSaZI9bGd1SUH1XC79ZiV8fqjwo2dG ECGw== 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:content-transfer-encoding :content-language:in-reply-to:mime-version:date:message-id:from :references:to:subject:dkim-signature; bh=SQNE18z7qZ/mMiycSbA7mbTL55eHIentGexhnePVbcc=; b=wmU+lVPtKq9I07OaGwEAR/g+1oFug2XR3p+c52I6xImdE98o0dpydVEXMQqKaqJ4ZE SVJRGwCldrO0xKkErz/Awdw2uCWDO4EXHAbBGJazG+y3NZ3UXrzSU8LOphcg/+EwtR81 7qj9cWE/C6L4oF/oc7kiQVOOFWPsBcxZT6JJMHZeDUM3P5/tcFd9QaEMuJp9kscTvz5W A5t6ULMizCXnoa0EwjP2f8Q7rO+gfpJhZHw9f2f5GKdrAb4Vyg2LHuV87tmeyLQyNNSu O/ehbO1NawrAyee/PAIn0hNsoahvTEXuXycLZdnCNnTcgfmPVYXwNHSfW/INOOixhZGg LWBg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=sAsZF1yT; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=CEuT1J4A; spf=pass (google.com: domain of gmarpons-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050::465:202 as permitted sender) smtp.mailfrom=gmarpons-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=mailbox.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=subject:to:references:from:message-id:date:mime-version:in-reply-to :content-language:content-transfer-encoding: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=SQNE18z7qZ/mMiycSbA7mbTL55eHIentGexhnePVbcc=; b=lL2mgmUKyejhUY30xkTm/l2hnKeUGc9z70xkGNX9by/0fiMNCbiUPSqltHU5sROJYT u3dG6NbpPVfApBodCe/IiTPAps9+YqK8XnFDp2DL3++F0L37HpRUPyGZRHV9A60DT9HP tBFNmHxiAEKE1PdNmrM4mohBBu+C6j0MNz6a24HcJvtNPPmTUh12/1/T+yJnuXj+Pf32 6JHSmrt8r4WCODlESZ9VqYkAzAJuPrtcHjeAilVtjULNCDhTaEGUxxogVa6RD9DHW8rM TsZsbjv4FAw1puZSrFoPQueeeAnQM5OrSB+9SDNLP52YtNjVCHL/PqAYkxKzUax+OwE7 6GBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding :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=SQNE18z7qZ/mMiycSbA7mbTL55eHIentGexhnePVbcc=; b=G2B/SqpEEhcrOce/Cac5Ie4EdSTlNftDBZkfRZktdTn3Didu2WrupGDEcKoC6O+w9l R9KbVpiBabTJ5DYWIfIOqzjHeyISzqLCls2IQb9vhk6WgWocyN8v81/wsLd2uxi3kMor UQN/kWhCNn+b3MxWOQLlhF/PHSonpTxYI9ZpyCkNAdJ+DFsFPLxEjE2970+C6ESETwSO mt4ozKofwb4UKZpoF0Lse5nWGwxAFO/oOkqUJEBXMxmT++sQirXJIvbCElXnQaO9ONh0 mDJ+3swz6jG8DIPEWQHSA6i1i5xOUY4nXoBf/hsVKew7CXQszTvjW/YK8HqUMtSl X-Gm-Message-State: AOAM531fZ4dBSGZ2EBP2zOQYQgrgm13kzEG02dKiDYXzli6RkIibfO9F rzn2QiOSIv8PuGh4RLvbLZc= X-Google-Smtp-Source: ABdhPJwqXMXOSU4tgDmjCweOtsSvCRMDYENwujMKzW1tMa7Q3vJkh1b6RqW1tgbMn5mxo+CP1HPEGg== X-Received: by 2002:a19:c508:: with SMTP id w8mr3716404lfe.219.1623927531279; Thu, 17 Jun 2021 03:58:51 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a2e:8790:: with SMTP id n16ls1251595lji.11.gmail; Thu, 17 Jun 2021 03:58:48 -0700 (PDT) X-Received: by 2002:a2e:8758:: with SMTP id q24mr4128728ljj.212.1623927528328; Thu, 17 Jun 2021 03:58:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623927528; cv=none; d=google.com; s=arc-20160816; b=o5QYgWLs/ZVy5yL9PFd+Oi3WP9xf+Kt5Cdu63i0ihODKq7wzTlOw729+sCA31dOLvU REqsIOlFUj7Ur8SDy7Bi/ZdWernD9NsBdSOI2CDOflbV0rocWbOd3TS1uecUuhzEUD4g ervkWKZUjk2DmlkdTJKK9mtVmfDBoOjRAWu21zmglRqzu3XraofzMVg4JcI260seXWc7 aWTClmyuzblmuBK2WUK/JjBkf4aCRBmD+b9HFRTQ340+28RWheVGR61IoMElo3fSpo+P lK94XmvxW86+cANCSEWVkcIdSHuKlCOCkKZ5KKVX0un05mR/w1eWecrJ5EowZfpE40j4 oTpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :date:message-id:from:references:to:subject:dkim-signature :dkim-signature; bh=NyCqdlIb5jaBInPyIWwH2y3eR6CuymORSZM1FvnPr3A=; b=CDLfShH6EB9XPwRzUNsBEN5rEmtwpbdEt9BPtEa6hj58jzIQ5NN3A66/dg9QhRwI8J YjOd/l1mWLskUcS3lk0hPpA/iVsenjQOBt5IpotDEzoOTnelwR3pcvCpvb3XT7/bz8Yl OZwNd+GXGskBvpRVrLLEH1iXvntC6aOhCScLrK8FFNgmqT7mMMnDPmUeGdTCnYaakELT VDIPbfqaHlIV2Daijq3o3wCynq+q5baj3pc9gOEwXzOFpSx0MaclCLKJ/os9Xu40cYCQ mULEENkcIXe13BhihCBYNGnQdAS/69eib8b8+GPsdLOb3B51l7rrGyJ+1aek2yId+1t8 5D3w== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=sAsZF1yT; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=CEuT1J4A; spf=pass (google.com: domain of gmarpons-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050::465:202 as permitted sender) smtp.mailfrom=gmarpons-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=mailbox.org Original-Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org. [2001:67c:2050::465:202]) by gmr-mx.google.com with ESMTPS id w23si45154lje.6.2021.06.17.03.58.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Jun 2021 03:58:48 -0700 (PDT) Received-SPF: pass (google.com: domain of gmarpons-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050::465:202 as permitted sender) client-ip=2001:67c:2050::465:202; Original-Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4G5JvW4Jf0zQk4Q for ; Thu, 17 Jun 2021 12:58:47 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id V570QWi0nZoM for ; Thu, 17 Jun 2021 12:58:44 +0200 (CEST) In-Reply-To: Content-Language: en-US X-Rspamd-Score: -4.31 / 15.00 / 15.00 X-Rspamd-Queue-Id: B76CC1818 X-Rspamd-UID: 08e2ec X-Original-Sender: gmarpons-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=sAsZF1yT; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=CEuT1J4A; spf=pass (google.com: domain of gmarpons-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050::465:202 as permitted sender) smtp.mailfrom=gmarpons-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=mailbox.org X-Original-From: Guillem Marpons 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:28632 Archived-At: Thank you, John! El 16/6/21 a las 17:01, John MacFarlane escribi=C3=B3: >=20 > One issue concerns includes. The pandoc readers are > parameterized on any instance of PandocMonad, so they can be > run either "pure" or in an IO context. PandocMonad provides > an abstraction for reading from the file system -- an ersatz > file system is used in "pure" instances. >=20 > So, for purposes of eventual integration in pandoc, it would be > great if your library was compatible with this (rather than, > e.g., exporting a parser that requires MonadIO). I'm more than willing to make the changes needed to integrate with=20 Pandoc-the-tool, when time arrives, and start planing for it. In fact,=20 it seems that PandocMonad implements a lot of the functionality needed=20 for AsciiDoc include/image/whatever expansion. Now, is there some example of reader implemented as external library=20 that needs access to included files? It seems to me that the easiest way=20 for a library to integrate with PandocMonad would be to put the class in=20 a different package that the library (asciidoc-hs in this case) could=20 have as a dependency. Is there another way? What I understand is that=20 readCommonMark[Body] calls to a pure parser defined in package=20 commonmark, am I right? But it's not possible for the AsciiDoc parser to=20 be pure. -- Guillem --=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/c4d2a88d-2edc-ef8c-5db4-dcf87353d634%40mailbox.org.