From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28658 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: Fri, 18 Jun 2021 19:29:28 +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="3698"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCRMJJNTSUBBB7NPWODAMGQE5W2IZZQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jun 18 19:29:35 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wr1-f56.google.com ([209.85.221.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1luIJD-0000sH-Ju for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 18 Jun 2021 19:29:35 +0200 Original-Received: by mail-wr1-f56.google.com with SMTP id h104-20020adf90710000b029010de8455a3asf4647493wrh.12 for ; Fri, 18 Jun 2021 10:29:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1624037375; cv=pass; d=google.com; s=arc-20160816; b=jGTVaDkgsdIcXt9BubDxaQVaOHw/7P60J5AyHLnEV6cEOzmqL3HezRGEejUIAlIy5B spW1M/Ur8endmqA11JHr9qR5ROS0MATIqWIrvbvrMKQi8aHCTgfUtDaoKqi2cLz+7Xns 1LfecQQzdltV8XWTfxFoy0SrodzlECDaZl/9EQH0GP4qKjDKM8eId9autDFB+RBpE9pF 4rQkAEgf9ukLGTBBvABAQi8J3IkmeNNiGq1BUrWGxLu2FzzLEEv7c9f5SQ1iVNHs7i1/ Yz5/gJZBNtbEHk+4p6RmKtHmVrqMq+DoWeqPleeMs3C+8go+/WA59+dUJbircj9vPU98 1+CA== 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=XGsETvVRVlp1TjE8eMI03S4UokYLq885wxnTuXTiL1E=; b=MygXZcdkrg0L8y5wx+SG3bBMxSHAbEpAzPfhKQJ7jPwnBjOg1F1r1l4YZI6xpiOigL Qqf29nAJAb3gbDE9/v+31pgxuhQbUMB/HcH5z/VTDmSOOh4z3aFneYP5BI7/nEFiVfHP CW6zP0Ai0MUdGthXebKAxs6oy1ZoiS7OcZnHCF2h1V1GLilAFeTvQzJ2SXqFPvlizJEa T9/VmHT1SBxKwq5kVw3phQsmx+oep+zgvMLxVzfSrD9YBJp5JWXiLigvyET0il0emmVz zlHfizC9ifdL5CtskVcDZYBUJfGMOn7ctFLm7GIpEdYW6grMspYisWFjlbkWQmUSiM8D nJjQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b="Xu/sXWz2"; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=sn7rCQjG; 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=XGsETvVRVlp1TjE8eMI03S4UokYLq885wxnTuXTiL1E=; b=Te5PpnttrqEdVtjtkff9M1vRKGZqT3wejijGyaypRhAIybel/z24AHRVu41qEuGd0x XCWwJHW1Cr/KImdqNJcZvktJv1BjP5QWySqhxJJAHQLF2yduH9SnOrp3C5DFGkWHT3m9 YPFkC5sja3nxnETwwlsDz5xEtnVlGH91TzTvheI32Rl9H39sDGDKdbq18Ba27d30yBrm qAVafD9qptkqGOX210PGurVZHYOAZNUp4ZypMSIMoPwBMnbY/53d8YKFCPz2mMgCEevQ /mqijCTHaqrZZUI2dXFEoXCFRWKGYgA426FUZVfaKgU/erYYoCyRQyYfZ7fZocOTJG2m qQSA== 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=XGsETvVRVlp1TjE8eMI03S4UokYLq885wxnTuXTiL1E=; b=PbRDtB/Mx7iDmNv1ev4AEvbwKWF6e68lkwSgyQ/wZfKwONuldVcBBRu9IVWSzYekXS ounfh1HMx/f6RHDukF0wtlnq8LcpwwDprrMRU/EDNCz5Vj9lKEW8OZLLq2DTxE8k0aQU Dd3eaK6htlI0cvBAFxxf4zVJ7fb9AVvuoxT+r3B8Da50gbQEl5rBSoG10AClbmyaLfPa JHVthtKkgUpgq0CggsbMVu+VsL9xCbIHjMV2+OHFQK6iPrIR3AHEYMft9JkmKRHEHWLJ aA3JtnJ56soIniC+gsI6XcW6qUu9aqdpbohz63gQi5peRPo4x4vHuSHE/WP4/463 X-Gm-Message-State: AOAM532OVhUxHAfk6E/emkZ4vmzh42GmdRisG0YjfOT/wIQ9z133lLC8 1v6PEKvLkR9+XM02Yi0g1N4= X-Google-Smtp-Source: ABdhPJywu+L3lUj0a3NmL5uYgvyDvnUW/n6LUP8O0FTOV0mKa1JjJC0XursFvRLqsmAMKxGS/lqZBQ== X-Received: by 2002:a05:6000:258:: with SMTP id m24mr10547477wrz.127.1624037375298; Fri, 18 Jun 2021 10:29:35 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:adf:a141:: with SMTP id r1ls2763801wrr.3.gmail; Fri, 18 Jun 2021 10:29:32 -0700 (PDT) X-Received: by 2002:adf:9d92:: with SMTP id p18mr11855579wre.109.1624037372830; Fri, 18 Jun 2021 10:29:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624037372; cv=none; d=google.com; s=arc-20160816; b=qNrUGiZdG+ZZcGvJX0y++UuMeIgJw+3NK/W0NXJQ6J7IcfRexHyVGU2nXmJcMcE73E K38u6lJgipY08gyk5sk0ncBItt2NoRsSayxZqvXmlnrp8n7bncffyFPmSxRBEQrKiaJS hVut6r3Ad8U7S95uvvUaBcmxdXPocwCUGTACnK38ILp6Z7822A/B3XGA+fttFJL4Bhk8 qwc0ftRYDZEJjIPcM73Gga71ygdFphMP9HD7t9xj/8Y5sK/ExfpgiBSPXTY+5ym6ylrw IFn9KYlTPZizFZ7snlDC9hbEh68JouiTZc+LAAnJRHWACl+h27iwgFwh9mnRfkvwXKNZ bGkQ== 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=KfzGRP3rM8ibBKic+yP1TFUllmTORoPJWOR+zsB5HRk=; b=wMnxsVfEBPhHCm8t7XaTora1PjgiINbLtccOjbRSK7ZUAgNKNCgaxLBMw8ZmnbJBiV eKKDbQddnbO53is6lkin2qOCLw/3A/g6IJgDV8rmj/sBuRgxXAgEmW3FfLW7J7/gYfVk +MLLrQP0VRg0wiXIyA9b5qU1UgkmQ4zvV1EpGnfr5MReubfjV6DFg+MlYxGvTDfHfmNE bAtVY7y5D+4YRUlluY27tx05Bbtziy8GZh6reGj48f7Jrp34krUHgxPjOcZNT8Cir8w4 uCaYtFYM0k4xDHcgWsPaGMZm71JVTb3lX8G1J/65YTHUI+uD+G3QLzBovCCtLals/bBn vE1Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b="Xu/sXWz2"; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=sn7rCQjG; 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 m35si348664wms.2.2021.06.18.10.29.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Jun 2021 10:29:32 -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 4G65Ww3nzPzQk1c for ; Fri, 18 Jun 2021 19:29:32 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030) with ESMTP id U14hoq8O_chN for ; Fri, 18 Jun 2021 19:29:29 +0200 (CEST) In-Reply-To: Content-Language: en-US X-Rspamd-Score: -4.31 / 15.00 / 15.00 X-Rspamd-Queue-Id: 885A71817 X-Rspamd-UID: f94d38 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="Xu/sXWz2"; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=sn7rCQjG; 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:28658 Archived-At: El 18/6/21 a las 19:03, John MacFarlane escribi=C3=B3: > "'Guillem Marpons' via pandoc-discuss" >> El 16/6/21 a las 17:01, John MacFarlane escribi=C3=B3: >> >> Now, is there some example of reader implemented as external library >> that needs access to included files? It seems to me that the easiest way >> for a library to integrate with PandocMonad would be to put the class in >> a different package that the library (asciidoc-hs in this case) could >> have as a dependency. Is there another way? What I understand is that >> readCommonMark[Body] calls to a pure parser defined in package >> commonmark, am I right? But it's not possible for the AsciiDoc parser to >> be pure. >=20 > One idea would be to use a custom typeclass instead of using > MonadIO. Something a bit like PandocMonad, with a pure instance > and an IO instance. Say you call it AsciidocMonad. Then hooking > up your library to pandoc would just be a matter of defining >=20 > instance AsciidocMonad m =3D> PandocMonad m >=20 Yes, this could work. Most of the functionality in=20 AsciidocMonad/PandocMonad instances will be replicated, and in the long=20 run we could look for different package boundaries that avoid the=20 redundancy. But for now I think it's a good starting point and a=20 feasible path for integration. Thanks! -- 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/affe5bc0-6627-6edd-48a7-7863c13529c3%40mailbox.org.