* C bindings @ 2021-06-02 10:23 Esteban Lorenzano [not found] ` <058b4e30-1bcc-4b5a-be92-d47e7abf47d7n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 15+ messages in thread From: Esteban Lorenzano @ 2021-06-02 10:23 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 876 bytes --] Hello, I want to use pandoc to generate documents from a project which needs to interact through C. I have search a solution and I just found this: https://github.com/ShabbyX/libpandoc which is very old and seems unmaintained. I tried to compile it myself but, not being a haskell user, I failed completely. I wonder if there is another way to do this or, alternative, a benevolent soul could help me to compile that library? Thanks in advance! Esteban -- 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/msgid/pandoc-discuss/058b4e30-1bcc-4b5a-be92-d47e7abf47d7n%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 1283 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <058b4e30-1bcc-4b5a-be92-d47e7abf47d7n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: C bindings [not found] ` <058b4e30-1bcc-4b5a-be92-d47e7abf47d7n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2021-06-02 10:53 ` Albert Krewinkel 0 siblings, 0 replies; 15+ messages in thread From: Albert Krewinkel @ 2021-06-02 10:53 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Hi Esteban, Esteban Lorenzano <estebanlm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes: > I want to use pandoc to generate documents from a project which needs to > interact through C. > I have search a solution and I just found this: > https://github.com/ShabbyX/libpandoc which is very old and seems > unmaintained. I tried to compile it myself but, not being a haskell user, I > failed completely. > > I wonder if there is another way to do this or, alternative, a benevolent > soul could help me to compile that library? There have been many architectural changes in the 5 years since libpandoc was last updated, and I therefore believe that it would probably be a great amount of work to get libpandoc running again. There is an open issue for a shared library here: https://github.com/jgm/pandoc/issues/6611 It would be very helpful if you could comment there and describe which pandoc features you'd need to access and control. Cheers, Albert -- Albert Krewinkel GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 ^ permalink raw reply [flat|nested] 15+ messages in thread
* C bindings @ 2013-06-26 16:32 Shahbaz Youssefi [not found] ` <cc84a902-1bc5-433f-b176-ce71dd8e3acd-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 15+ messages in thread From: Shahbaz Youssefi @ 2013-06-26 16:32 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 1101 bytes --] Hi, I just came to know pandoc and it seems wonderful and I'm planning on using it in a project of mine. My project however is written in C. Given that making C bindings is a common operation for many languages (and I saw that for Haskell it too is possible), I was wondering if pandoc has any C bindings? If not, would it be a possibility to make those bindings? I know very basic Haskell, but I might be able to make the bindings myself with some struggle, if the developers are interested.. Thank you, Shahbaz -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/cc84a902-1bc5-433f-b176-ce71dd8e3acd%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. [-- Attachment #2: Type: text/html, Size: 1386 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <cc84a902-1bc5-433f-b176-ce71dd8e3acd-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: C bindings [not found] ` <cc84a902-1bc5-433f-b176-ce71dd8e3acd-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2013-06-26 17:14 ` John MacFarlane [not found] ` <20130626171432.GA1663-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org> 0 siblings, 1 reply; 15+ messages in thread From: John MacFarlane @ 2013-06-26 17:14 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw There is https://github.com/toyvo/libpandoc but I'm not sure when it was last updated. +++ Shahbaz Youssefi [Jun 26 13 09:32 ]: > Hi, > I just came to know pandoc and it seems wonderful and I'm planning on > using it in a project of mine. My project however is written in C. > Given that making C bindings is a common operation for many languages > (and I saw that for Haskell it too is possible), I was wondering if > pandoc has any C bindings? If not, would it be a possibility to make > those bindings? > I know very basic Haskell, but I might be able to make the bindings > myself with some struggle, if the developers are interested.. > Thank you, > Shahbaz > > -- > 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > [1]https://groups.google.com/d/msgid/pandoc-discuss/cc84a902-1bc5-433f- > b176-ce71dd8e3acd%40googlegroups.com. > For more options, visit [2]https://groups.google.com/groups/opt_out. > > References > > 1. https://groups.google.com/d/msgid/pandoc-discuss/cc84a902-1bc5-433f-b176-ce71dd8e3acd%40googlegroups.com > 2. https://groups.google.com/groups/opt_out ^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <20130626171432.GA1663-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>]
* Re: C bindings [not found] ` <20130626171432.GA1663-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org> @ 2013-06-28 9:23 ` Shahbaz Youssefi [not found] ` <CALeOzZ_ypqU1fT=cBd8-JNLBeEG3RK0v2VJ1JTh3Q1FS11n6uQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 15+ messages in thread From: Shahbaz Youssefi @ 2013-06-28 9:23 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 4012 bytes --] Thank you for the pointer. I am in the process of updating libpandoc to work with pandoc 1.11 (actually above 1.10) where I came to a build issue that I'm not sure how to resolve. Loading package regex-pcre-builtin-0.94.4.6.8.31 ... linking ... ghc: /home/XXXX/.cabal/lib/regex-pcre-builtin-0.94.4.6.8.31/ghc-7.4.1/HSregex-pcre-builtin-0.94.4.6.8.31.o: unknown symbol `utf8_table4' ghc: unable to load package `regex-pcre-builtin-0.94.4.6.8.31' Trying to reinstall regex-pcre-builtin with cabal gives a warning that it may break pandoc. The offending source code is this: {-# LANGUAGE TemplateHaskell #-} module LibPandoc.Instances where import Data.Data import Data.DeriveTH import Text.Pandoc import Text.Pandoc.Shared $( derive makeTypeable ''ReaderOptions ) $( derive makeData ''ReaderOptions ) $( derive makeTypeable ''WriterOptions ) $( derive makeData ''WriterOptions ) $( derive makeTypeable ''HTMLMathMethod ) $( derive makeData ''HTMLMathMethod ) $( derive makeTypeable ''ObfuscationMethod ) $( derive makeData ''ObfuscationMethod ) Can you see anything wrong there? Thank you again for the help, Shahbaz On Wed, Jun 26, 2013 at 7:14 PM, John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > There is > https://github.com/toyvo/libpandoc > but I'm not sure when it was last updated. > > +++ Shahbaz Youssefi [Jun 26 13 09:32 ]: > > Hi, > > I just came to know pandoc and it seems wonderful and I'm planning on > > using it in a project of mine. My project however is written in C. > > Given that making C bindings is a common operation for many languages > > (and I saw that for Haskell it too is possible), I was wondering if > > pandoc has any C bindings? If not, would it be a possibility to make > > those bindings? > > I know very basic Haskell, but I might be able to make the bindings > > myself with some struggle, if the developers are interested.. > > Thank you, > > Shahbaz > > > > -- > > 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > > [1] > https://groups.google.com/d/msgid/pandoc-discuss/cc84a902-1bc5-433f- > > b176-ce71dd8e3acd%40googlegroups.com. > > For more options, visit [2]https://groups.google.com/groups/opt_out. > > > > References > > > > 1. > https://groups.google.com/d/msgid/pandoc-discuss/cc84a902-1bc5-433f-b176-ce71dd8e3acd%40googlegroups.com > > 2. https://groups.google.com/groups/opt_out > > -- > 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/20130626171432.GA1663%40protagoras.phil.berkeley.edu > . > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CALeOzZ_ypqU1fT%3DcBd8-JNLBeEG3RK0v2VJ1JTh3Q1FS11n6uQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out. [-- Attachment #2: Type: text/html, Size: 6235 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <CALeOzZ_ypqU1fT=cBd8-JNLBeEG3RK0v2VJ1JTh3Q1FS11n6uQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: C bindings [not found] ` <CALeOzZ_ypqU1fT=cBd8-JNLBeEG3RK0v2VJ1JTh3Q1FS11n6uQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2013-06-28 12:12 ` Shahbaz Youssefi [not found] ` <CALeOzZ-Gf=QTQdWa6yb8yG3EWiOUE1kmmUHwT9Axj6aHgPhedQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 15+ messages in thread From: Shahbaz Youssefi @ 2013-06-28 12:12 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 4387 bytes --] It seems like that was an error in the package itself. This [question]( http://stackoverflow.com/q/17361047/912144) and its answer have the solution. On Fri, Jun 28, 2013 at 11:23 AM, Shahbaz Youssefi <shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > Thank you for the pointer. I am in the process of updating libpandoc to > work with pandoc 1.11 (actually above 1.10) where I came to a build issue > that I'm not sure how to resolve. > > Loading package regex-pcre-builtin-0.94.4.6.8.31 ... linking ... ghc: > /home/XXXX/.cabal/lib/regex-pcre-builtin-0.94.4.6.8.31/ghc-7.4.1/HSregex-pcre-builtin-0.94.4.6.8.31.o: > unknown symbol `utf8_table4' > ghc: unable to load package `regex-pcre-builtin-0.94.4.6.8.31' > > Trying to reinstall regex-pcre-builtin with cabal gives a warning that it > may break pandoc. > > The offending source code is this: > > {-# LANGUAGE TemplateHaskell #-} > > module LibPandoc.Instances where > > import Data.Data > import Data.DeriveTH > import Text.Pandoc > import Text.Pandoc.Shared > > $( derive makeTypeable ''ReaderOptions ) > $( derive makeData ''ReaderOptions ) > $( derive makeTypeable ''WriterOptions ) > $( derive makeData ''WriterOptions ) > $( derive makeTypeable ''HTMLMathMethod ) > $( derive makeData ''HTMLMathMethod ) > $( derive makeTypeable ''ObfuscationMethod ) > $( derive makeData ''ObfuscationMethod ) > > Can you see anything wrong there? > > Thank you again for the help, > Shahbaz > > On Wed, Jun 26, 2013 at 7:14 PM, John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > >> There is >> https://github.com/toyvo/libpandoc >> but I'm not sure when it was last updated. >> >> +++ Shahbaz Youssefi [Jun 26 13 09:32 ]: >> > Hi, >> > I just came to know pandoc and it seems wonderful and I'm planning on >> > using it in a project of mine. My project however is written in C. >> > Given that making C bindings is a common operation for many languages >> > (and I saw that for Haskell it too is possible), I was wondering if >> > pandoc has any C bindings? If not, would it be a possibility to make >> > those bindings? >> > I know very basic Haskell, but I might be able to make the bindings >> > myself with some struggle, if the developers are interested.. >> > Thank you, >> > Shahbaz >> > >> > -- >> > 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org >> . >> > To view this discussion on the web visit >> > [1] >> https://groups.google.com/d/msgid/pandoc-discuss/cc84a902-1bc5-433f- >> > b176-ce71dd8e3acd%40googlegroups.com. >> > For more options, visit [2]https://groups.google.com/groups/opt_out. >> > >> > References >> > >> > 1. >> https://groups.google.com/d/msgid/pandoc-discuss/cc84a902-1bc5-433f-b176-ce71dd8e3acd%40googlegroups.com >> > 2. https://groups.google.com/groups/opt_out >> >> -- >> 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/20130626171432.GA1663%40protagoras.phil.berkeley.edu >> . >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CALeOzZ-Gf%3DQTQdWa6yb8yG3EWiOUE1kmmUHwT9Axj6aHgPhedQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out. [-- Attachment #2: Type: text/html, Size: 6956 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <CALeOzZ-Gf=QTQdWa6yb8yG3EWiOUE1kmmUHwT9Axj6aHgPhedQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: C bindings [not found] ` <CALeOzZ-Gf=QTQdWa6yb8yG3EWiOUE1kmmUHwT9Axj6aHgPhedQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2013-06-30 11:04 ` Shahbaz Youssefi [not found] ` <CALeOzZ_BcVwuYTJwpQBSOhd9FMbU=Nu_F4=TtDeHLfNc2h3LYQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 15+ messages in thread From: Shahbaz Youssefi @ 2013-06-30 11:04 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 5002 bytes --] Hi again, I updated libpandoc (for C bindings) to the current version of pandoc and made some improvements. I sent a pull request to toyvo, but it has been left unanswered (he's probably not so active on github). In the meantime, you could [refer](https://github.com/jgm/pandoc/wiki/Pandoc-Extras) to my fork at: https://github.com/ShabbyX/libpandoc Have a nice day, Shahbaz On Fri, Jun 28, 2013 at 2:12 PM, Shahbaz Youssefi <shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > It seems like that was an error in the package itself. This [question]( > http://stackoverflow.com/q/17361047/912144) and its answer have the > solution. > > > On Fri, Jun 28, 2013 at 11:23 AM, Shahbaz Youssefi <shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > >> Thank you for the pointer. I am in the process of updating libpandoc to >> work with pandoc 1.11 (actually above 1.10) where I came to a build issue >> that I'm not sure how to resolve. >> >> Loading package regex-pcre-builtin-0.94.4.6.8.31 ... linking ... ghc: >> /home/XXXX/.cabal/lib/regex-pcre-builtin-0.94.4.6.8.31/ghc-7.4.1/HSregex-pcre-builtin-0.94.4.6.8.31.o: >> unknown symbol `utf8_table4' >> ghc: unable to load package `regex-pcre-builtin-0.94.4.6.8.31' >> >> Trying to reinstall regex-pcre-builtin with cabal gives a warning that it >> may break pandoc. >> >> The offending source code is this: >> >> {-# LANGUAGE TemplateHaskell #-} >> >> module LibPandoc.Instances where >> >> import Data.Data >> import Data.DeriveTH >> import Text.Pandoc >> import Text.Pandoc.Shared >> >> $( derive makeTypeable ''ReaderOptions ) >> $( derive makeData ''ReaderOptions ) >> $( derive makeTypeable ''WriterOptions ) >> $( derive makeData ''WriterOptions ) >> $( derive makeTypeable ''HTMLMathMethod ) >> $( derive makeData ''HTMLMathMethod ) >> $( derive makeTypeable ''ObfuscationMethod ) >> $( derive makeData ''ObfuscationMethod ) >> >> Can you see anything wrong there? >> >> Thank you again for the help, >> Shahbaz >> >> On Wed, Jun 26, 2013 at 7:14 PM, John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: >> >>> There is >>> https://github.com/toyvo/libpandoc >>> but I'm not sure when it was last updated. >>> >>> +++ Shahbaz Youssefi [Jun 26 13 09:32 ]: >>> > Hi, >>> > I just came to know pandoc and it seems wonderful and I'm planning >>> on >>> > using it in a project of mine. My project however is written in C. >>> > Given that making C bindings is a common operation for many >>> languages >>> > (and I saw that for Haskell it too is possible), I was wondering if >>> > pandoc has any C bindings? If not, would it be a possibility to make >>> > those bindings? >>> > I know very basic Haskell, but I might be able to make the bindings >>> > myself with some struggle, if the developers are interested.. >>> > Thank you, >>> > Shahbaz >>> > >>> > -- >>> > 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 post to this group, send email to >>> pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> > To view this discussion on the web visit >>> > [1] >>> https://groups.google.com/d/msgid/pandoc-discuss/cc84a902-1bc5-433f- >>> > b176-ce71dd8e3acd%40googlegroups.com. >>> > For more options, visit [2]https://groups.google.com/groups/opt_out >>> . >>> > >>> > References >>> > >>> > 1. >>> https://groups.google.com/d/msgid/pandoc-discuss/cc84a902-1bc5-433f-b176-ce71dd8e3acd%40googlegroups.com >>> > 2. https://groups.google.com/groups/opt_out >>> >>> -- >>> 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/pandoc-discuss/20130626171432.GA1663%40protagoras.phil.berkeley.edu >>> . >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CALeOzZ_BcVwuYTJwpQBSOhd9FMbU%3DNu_F4%3DTtDeHLfNc2h3LYQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out. [-- Attachment #2: Type: text/html, Size: 7985 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <CALeOzZ_BcVwuYTJwpQBSOhd9FMbU=Nu_F4=TtDeHLfNc2h3LYQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: C bindings [not found] ` <CALeOzZ_BcVwuYTJwpQBSOhd9FMbU=Nu_F4=TtDeHLfNc2h3LYQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2013-06-30 18:30 ` John MacFarlane [not found] ` <20130630183036.GA17415-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org> 0 siblings, 1 reply; 15+ messages in thread From: John MacFarlane @ 2013-06-30 18:30 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Thanks for doing this. I've updated pandoc-extras. +++ Shahbaz Youssefi [Jun 30 13 13:04 ]: > Hi again, > I updated libpandoc (for C bindings) to the current version of pandoc > and made some improvements. I sent a pull request to toyvo, but it has > been left unanswered (he's probably not so active on github). In the > meantime, you could > [refer]([1]https://github.com/jgm/pandoc/wiki/Pandoc-Extras) to my fork > at: > [2]https://github.com/ShabbyX/libpandoc > Have a nice day, > Shahbaz > > On Fri, Jun 28, 2013 at 2:12 PM, Shahbaz Youssefi > <[3]shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > It seems like that was an error in the package itself. This > [question]([4]http://stackoverflow.com/q/17361047/912144) and its > answer have the solution. > > On Fri, Jun 28, 2013 at 11:23 AM, Shahbaz Youssefi > <[5]shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Thank you for the pointer. I am in the process of updating libpandoc to > work with pandoc 1.11 (actually above 1.10) where I came to a build > issue that I'm not sure how to resolve. > Loading package regex-pcre-builtin-0.94.4.6.8.31 ... linking ... ghc: > /home/XXXX/.cabal/lib/regex-pcre-builtin-0.94.4.6.8.31/ghc-7.4.1/HSrege > x-pcre-builtin-0.94.4.6.8.31.o: unknown symbol `utf8_table4' > ghc: unable to load package `regex-pcre-builtin-0.94.4.6.8.31' > Trying to reinstall regex-pcre-builtin with cabal gives a warning that > it may break pandoc. > The offending source code is this: > {-# LANGUAGE TemplateHaskell #-} > module LibPandoc.Instances where > import Data.Data > import Data.DeriveTH > import Text.Pandoc > import Text.Pandoc.Shared > $( derive makeTypeable ''ReaderOptions ) > $( derive makeData ''ReaderOptions ) > $( derive makeTypeable ''WriterOptions ) > $( derive makeData ''WriterOptions ) > $( derive makeTypeable ''HTMLMathMethod ) > $( derive makeData ''HTMLMathMethod ) > $( derive makeTypeable ''ObfuscationMethod ) > $( derive makeData ''ObfuscationMethod ) > Can you see anything wrong there? > Thank you again for the help, > Shahbaz > On Wed, Jun 26, 2013 at 7:14 PM, John MacFarlane > <[6]fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > There is > [7]https://github.com/toyvo/libpandoc > but I'm not sure when it was last updated. > +++ Shahbaz Youssefi [Jun 26 13 09:32 ]: > > > Hi, > > I just came to know pandoc and it seems wonderful and I'm planning on > > using it in a project of mine. My project however is written in C. > > Given that making C bindings is a common operation for many languages > > (and I saw that for Haskell it too is possible), I was wondering if > > pandoc has any C bindings? If not, would it be a possibility to make > > those bindings? > > I know very basic Haskell, but I might be able to make the bindings > > myself with some struggle, if the developers are interested.. > > Thank you, > > Shahbaz > > > > -- > > 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 [8]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To post to this group, send email to > [9]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > > > > [1][10]https://groups.google.com/d/msgid/pandoc-discuss/cc84a902-1bc > 5-433f- > > b176-ce71dd8e3acd%[11]40googlegroups.com. > > For more options, visit > [2][12]https://groups.google.com/groups/opt_out. > > > > References > > > > 1. > [13]https://groups.google.com/d/msgid/pandoc-discuss/cc84a902-1bc5-4 > 33f-b176-ce71dd8e3acd%40googlegroups.com > > 2. [14]https://groups.google.com/groups/opt_out > > -- > 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 [15]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to > [16]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > [17]https://groups.google.com/d/msgid/pandoc-discuss/20130626171432. > GA1663%40protagoras.phil.berkeley.edu. > > For more options, visit [18]https://groups.google.com/groups/opt_out. > > -- > 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > [19]https://groups.google.com/d/msgid/pandoc-discuss/CALeOzZ_BcVwuYTJwp > QBSOhd9FMbU%3DNu_F4%3DTtDeHLfNc2h3LYQ%40mail.gmail.com. > For more options, visit [20]https://groups.google.com/groups/opt_out. > > References > > 1. https://github.com/jgm/pandoc/wiki/Pandoc-Extras > 2. https://github.com/ShabbyX/libpandoc > 3. mailto:shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > 4. http://stackoverflow.com/q/17361047/912144 > 5. mailto:shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > 6. mailto:fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > 7. https://github.com/toyvo/libpandoc > 8. mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 9. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 10. https://groups.google.com/d/msgid/pandoc-discuss/cc84a902-1bc5-433f- > 11. http://40googlegroups.com/ > 12. https://groups.google.com/groups/opt_out > 13. https://groups.google.com/d/msgid/pandoc-discuss/cc84a902-1bc5-433f-b176-ce71dd8e3acd%40googlegroups.com > 14. https://groups.google.com/groups/opt_out > 15. mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 16. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 17. https://groups.google.com/d/msgid/pandoc-discuss/20130626171432.GA1663%40protagoras.phil.berkeley.edu > 18. https://groups.google.com/groups/opt_out > 19. https://groups.google.com/d/msgid/pandoc-discuss/CALeOzZ_BcVwuYTJwpQBSOhd9FMbU%3DNu_F4%3DTtDeHLfNc2h3LYQ%40mail.gmail.com > 20. https://groups.google.com/groups/opt_out ^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <20130630183036.GA17415-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>]
* Re: C bindings [not found] ` <20130630183036.GA17415-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org> @ 2015-02-24 14:39 ` Shahbaz Youssefi [not found] ` <01aacd0c-291e-455d-9fc0-0673a904671c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 15+ messages in thread From: Shahbaz Youssefi @ 2015-02-24 14:39 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1.1: Type: text/plain, Size: 3200 bytes --] Hi, I'm updating libpandoc to align with pandoc 1.13, but I'm currently having a compilation issue that is beyond my understanding. In [LibPandoc/Instances.hs](https://github.com/ShabbyX/libpandoc/blob/master/src/LibPandoc/Instances.hs), there is the following code, that had been working with pandoc 1.11: {-# LANGUAGE TemplateHaskell #-} module LibPandoc.Instances where import Data.Data import Data.DeriveTH import Text.Pandoc import Text.Pandoc.Shared import Text.Highlighting.Kate.Types $( derive makeTypeable ''ReaderOptions ) $( derive makeData ''ReaderOptions ) $( derive makeTypeable ''WriterOptions ) $( derive makeData ''WriterOptions ) ... From what I understand, `derive makeData` does some magic, so that later one could say `deriving (Data)` for a type that contains `ReaderOptions` and `WriterOptions`. With newer pandoc, it seems that some types were added. With `TrackChanges` used in `ReaderOptions`, I can add similar `derive makeTypeable/makeData` lines and everything is ok. With `MediaBag` used in `WriterOptions` however, I can't do this. Without `derive makeData` for `MediaBag`, I get the following error for `$( derive makeData WriterOptions )`: No instance for (Data MediaBag) arising from a use of `k' Possible fix: add an instance declaration for (Data MediaBag) In the expression: ... A VERY LONG EXPRESSION WITH A LOT OF `k` INFIX CALLS ... If I add `$( derive makeData MediaBag)` before, I get this error on it: Not in scope: data constructor `MediaBag' I have `import Text.Pandoc.MediaBag`. From what I could make out, the reason is probably that others, such as `TrackChanges` are defined with the `data` keyword, but `MediaBag` is defined with the `newtype` keyword. Is that so? How then, can I make `$( derive makeData ''MediaBag)` work? If not possible, how can I make `$( derive makeData ''WriterOptions )` work? Thanks for the help, Shahbaz On Sunday, June 30, 2013 at 8:30:37 PM UTC+2, fiddlosopher wrote: > > Thanks for doing this. I've updated pandoc-extras. > > +++ Shahbaz Youssefi [Jun 30 13 13:04 ]: > > Hi again, > > I updated libpandoc (for C bindings) to the current version of pandoc > > and made some improvements. I sent a pull request to toyvo, but it > has > > been left unanswered (he's probably not so active on github). In the > > meantime, you could > > [refer]([1]https://github.com/jgm/pandoc/wiki/Pandoc-Extras) to my > fork > > at: > > [2]https://github.com/ShabbyX/libpandoc > > Have a nice day, > > Shahbaz > > > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/01aacd0c-291e-455d-9fc0-0673a904671c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 5247 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <01aacd0c-291e-455d-9fc0-0673a904671c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: C bindings [not found] ` <01aacd0c-291e-455d-9fc0-0673a904671c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2015-02-24 14:44 ` Matthew Pickering [not found] ` <CALuQ0m_3c63CN4VLEqMM953bxi=mou4M7+rukbdo9H1=7em7sQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 15+ messages in thread From: Matthew Pickering @ 2015-02-24 14:44 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 4234 bytes --] Would it just be easier if we derived Data and Typeable instances in pandoc? On Tue, Feb 24, 2015 at 2:39 PM, Shahbaz Youssefi <shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Hi, > > I'm updating libpandoc to align with pandoc 1.13, but I'm currently having > a compilation issue that is beyond my understanding. > > In [LibPandoc/Instances.hs]( > https://github.com/ShabbyX/libpandoc/blob/master/src/LibPandoc/Instances.hs), > there is the following code, that had been working with pandoc 1.11: > > {-# LANGUAGE TemplateHaskell #-} > > module LibPandoc.Instances where > > import Data.Data > import Data.DeriveTH > import Text.Pandoc > import Text.Pandoc.Shared > import Text.Highlighting.Kate.Types > > $( derive makeTypeable ''ReaderOptions ) > $( derive makeData ''ReaderOptions ) > $( derive makeTypeable ''WriterOptions ) > $( derive makeData ''WriterOptions ) > ... > > From what I understand, `derive makeData` does some magic, so that later > one could say `deriving (Data)` for a type that contains `ReaderOptions` > and `WriterOptions`. With newer pandoc, it seems that some types were > added. With `TrackChanges` used in `ReaderOptions`, I can add similar > `derive makeTypeable/makeData` lines and everything is ok. With `MediaBag` > used in `WriterOptions` however, I can't do this. > > Without `derive makeData` for `MediaBag`, I get the following error for > `$( derive makeData WriterOptions )`: > > No instance for (Data MediaBag) arising from a use of `k' > Possible fix: add an instance declaration for (Data MediaBag) > In the expression: > ... A VERY LONG EXPRESSION WITH A LOT OF `k` INFIX CALLS ... > > If I add `$( derive makeData MediaBag)` before, I get this error on it: > > Not in scope: data constructor `MediaBag' > > I have `import Text.Pandoc.MediaBag`. > > From what I could make out, the reason is probably that others, such as > `TrackChanges` are defined with the `data` keyword, but `MediaBag` is > defined with the `newtype` keyword. Is that so? How then, can I make `$( > derive makeData ''MediaBag)` work? If not possible, how can I make `$( > derive makeData ''WriterOptions )` work? > > Thanks for the help, > Shahbaz > > On Sunday, June 30, 2013 at 8:30:37 PM UTC+2, fiddlosopher wrote: >> >> Thanks for doing this. I've updated pandoc-extras. >> >> +++ Shahbaz Youssefi [Jun 30 13 13:04 ]: >> > Hi again, >> > I updated libpandoc (for C bindings) to the current version of >> pandoc >> > and made some improvements. I sent a pull request to toyvo, but it >> has >> > been left unanswered (he's probably not so active on github). In the >> > meantime, you could >> > [refer]([1]https://github.com/jgm/pandoc/wiki/Pandoc-Extras) to my >> fork >> > at: >> > [2]https://github.com/ShabbyX/libpandoc >> > Have a nice day, >> > Shahbaz >> > >> > -- > 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/01aacd0c-291e-455d-9fc0-0673a904671c%40googlegroups.com > <https://groups.google.com/d/msgid/pandoc-discuss/01aacd0c-291e-455d-9fc0-0673a904671c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CALuQ0m_3c63CN4VLEqMM953bxi%3Dmou4M7%2Brukbdo9H1%3D7em7sQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #2: Type: text/html, Size: 5973 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <CALuQ0m_3c63CN4VLEqMM953bxi=mou4M7+rukbdo9H1=7em7sQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: C bindings [not found] ` <CALuQ0m_3c63CN4VLEqMM953bxi=mou4M7+rukbdo9H1=7em7sQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2015-02-24 14:51 ` Shahbaz Youssefi [not found] ` <CALeOzZ9Ru015fD-=djS34LYOryiaCXs6NnmbBP=51L-9ZxexTg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 15+ messages in thread From: Shahbaz Youssefi @ 2015-02-24 14:51 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 5724 bytes --] I would imagine it would. I can't say I really understand what they are, but bottom line is that [`LibPandocSettings` in the libpandoc implementation]( https://github.com/ShabbyX/libpandoc/blob/master/src/LibPandoc/Settings.hs#L10) contains `ReaderOptions` and `WriterOptions` and wants `deriving (Data, Typeable)`. Again, I wouldn't know why `LibPandocSettings` wants to be derived from those two types. I'll try to play around in the meantime, see if I can just remove this requirement. On Tue, Feb 24, 2015 at 3:44 PM, Matthew Pickering < matthewtpickering-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Would it just be easier if we derived Data and Typeable instances in > pandoc? > > On Tue, Feb 24, 2015 at 2:39 PM, Shahbaz Youssefi <shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > >> Hi, >> >> I'm updating libpandoc to align with pandoc 1.13, but I'm currently >> having a compilation issue that is beyond my understanding. >> >> In [LibPandoc/Instances.hs]( >> https://github.com/ShabbyX/libpandoc/blob/master/src/LibPandoc/Instances.hs), >> there is the following code, that had been working with pandoc 1.11: >> >> {-# LANGUAGE TemplateHaskell #-} >> >> module LibPandoc.Instances where >> >> import Data.Data >> import Data.DeriveTH >> import Text.Pandoc >> import Text.Pandoc.Shared >> import Text.Highlighting.Kate.Types >> >> $( derive makeTypeable ''ReaderOptions ) >> $( derive makeData ''ReaderOptions ) >> $( derive makeTypeable ''WriterOptions ) >> $( derive makeData ''WriterOptions ) >> ... >> >> From what I understand, `derive makeData` does some magic, so that later >> one could say `deriving (Data)` for a type that contains `ReaderOptions` >> and `WriterOptions`. With newer pandoc, it seems that some types were >> added. With `TrackChanges` used in `ReaderOptions`, I can add similar >> `derive makeTypeable/makeData` lines and everything is ok. With `MediaBag` >> used in `WriterOptions` however, I can't do this. >> >> Without `derive makeData` for `MediaBag`, I get the following error for >> `$( derive makeData WriterOptions )`: >> >> No instance for (Data MediaBag) arising from a use of `k' >> Possible fix: add an instance declaration for (Data MediaBag) >> In the expression: >> ... A VERY LONG EXPRESSION WITH A LOT OF `k` INFIX CALLS ... >> >> If I add `$( derive makeData MediaBag)` before, I get this error on it: >> >> Not in scope: data constructor `MediaBag' >> >> I have `import Text.Pandoc.MediaBag`. >> >> From what I could make out, the reason is probably that others, such as >> `TrackChanges` are defined with the `data` keyword, but `MediaBag` is >> defined with the `newtype` keyword. Is that so? How then, can I make `$( >> derive makeData ''MediaBag)` work? If not possible, how can I make `$( >> derive makeData ''WriterOptions )` work? >> >> Thanks for the help, >> Shahbaz >> >> On Sunday, June 30, 2013 at 8:30:37 PM UTC+2, fiddlosopher wrote: >>> >>> Thanks for doing this. I've updated pandoc-extras. >>> >>> +++ Shahbaz Youssefi [Jun 30 13 13:04 ]: >>> > Hi again, >>> > I updated libpandoc (for C bindings) to the current version of >>> pandoc >>> > and made some improvements. I sent a pull request to toyvo, but it >>> has >>> > been left unanswered (he's probably not so active on github). In >>> the >>> > meantime, you could >>> > [refer]([1]https://github.com/jgm/pandoc/wiki/Pandoc-Extras) to my >>> fork >>> > at: >>> > [2]https://github.com/ShabbyX/libpandoc >>> > Have a nice day, >>> > Shahbaz >>> > >>> >> -- >> 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/01aacd0c-291e-455d-9fc0-0673a904671c%40googlegroups.com >> <https://groups.google.com/d/msgid/pandoc-discuss/01aacd0c-291e-455d-9fc0-0673a904671c%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- > 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/CALuQ0m_3c63CN4VLEqMM953bxi%3Dmou4M7%2Brukbdo9H1%3D7em7sQ%40mail.gmail.com > <https://groups.google.com/d/msgid/pandoc-discuss/CALuQ0m_3c63CN4VLEqMM953bxi%3Dmou4M7%2Brukbdo9H1%3D7em7sQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CALeOzZ9Ru015fD-%3DdjS34LYOryiaCXs6NnmbBP%3D51L-9ZxexTg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #2: Type: text/html, Size: 8204 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <CALeOzZ9Ru015fD-=djS34LYOryiaCXs6NnmbBP=51L-9ZxexTg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: C bindings [not found] ` <CALeOzZ9Ru015fD-=djS34LYOryiaCXs6NnmbBP=51L-9ZxexTg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2015-02-24 15:00 ` Shahbaz Youssefi [not found] ` <CALeOzZ9_oPFaDY0FEnLSSOVno2Ut6oq0VAK1q5gYKYZwfQmimg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 15+ messages in thread From: Shahbaz Youssefi @ 2015-02-24 15:00 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 6082 bytes --] P.S. libpandoc derives LibPandocSettings from those types because it uses a Data.Generics.Rep.toRep function on it. On Tue, Feb 24, 2015 at 3:51 PM, Shahbaz Youssefi <shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > I would imagine it would. I can't say I really understand what they are, > but bottom line is that [`LibPandocSettings` in the libpandoc > implementation]( > https://github.com/ShabbyX/libpandoc/blob/master/src/LibPandoc/Settings.hs#L10) > contains `ReaderOptions` and `WriterOptions` and wants `deriving (Data, > Typeable)`. > > Again, I wouldn't know why `LibPandocSettings` wants to be derived from > those two types. I'll try to play around in the meantime, see if I can just > remove this requirement. > > On Tue, Feb 24, 2015 at 3:44 PM, Matthew Pickering < > matthewtpickering-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Would it just be easier if we derived Data and Typeable instances in >> pandoc? >> >> On Tue, Feb 24, 2015 at 2:39 PM, Shahbaz Youssefi <shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> wrote: >> >>> Hi, >>> >>> I'm updating libpandoc to align with pandoc 1.13, but I'm currently >>> having a compilation issue that is beyond my understanding. >>> >>> In [LibPandoc/Instances.hs]( >>> https://github.com/ShabbyX/libpandoc/blob/master/src/LibPandoc/Instances.hs), >>> there is the following code, that had been working with pandoc 1.11: >>> >>> {-# LANGUAGE TemplateHaskell #-} >>> >>> module LibPandoc.Instances where >>> >>> import Data.Data >>> import Data.DeriveTH >>> import Text.Pandoc >>> import Text.Pandoc.Shared >>> import Text.Highlighting.Kate.Types >>> >>> $( derive makeTypeable ''ReaderOptions ) >>> $( derive makeData ''ReaderOptions ) >>> $( derive makeTypeable ''WriterOptions ) >>> $( derive makeData ''WriterOptions ) >>> ... >>> >>> From what I understand, `derive makeData` does some magic, so that later >>> one could say `deriving (Data)` for a type that contains `ReaderOptions` >>> and `WriterOptions`. With newer pandoc, it seems that some types were >>> added. With `TrackChanges` used in `ReaderOptions`, I can add similar >>> `derive makeTypeable/makeData` lines and everything is ok. With `MediaBag` >>> used in `WriterOptions` however, I can't do this. >>> >>> Without `derive makeData` for `MediaBag`, I get the following error for >>> `$( derive makeData WriterOptions )`: >>> >>> No instance for (Data MediaBag) arising from a use of `k' >>> Possible fix: add an instance declaration for (Data MediaBag) >>> In the expression: >>> ... A VERY LONG EXPRESSION WITH A LOT OF `k` INFIX CALLS ... >>> >>> If I add `$( derive makeData MediaBag)` before, I get this error on it: >>> >>> Not in scope: data constructor `MediaBag' >>> >>> I have `import Text.Pandoc.MediaBag`. >>> >>> From what I could make out, the reason is probably that others, such as >>> `TrackChanges` are defined with the `data` keyword, but `MediaBag` is >>> defined with the `newtype` keyword. Is that so? How then, can I make `$( >>> derive makeData ''MediaBag)` work? If not possible, how can I make `$( >>> derive makeData ''WriterOptions )` work? >>> >>> Thanks for the help, >>> Shahbaz >>> >>> On Sunday, June 30, 2013 at 8:30:37 PM UTC+2, fiddlosopher wrote: >>>> >>>> Thanks for doing this. I've updated pandoc-extras. >>>> >>>> +++ Shahbaz Youssefi [Jun 30 13 13:04 ]: >>>> > Hi again, >>>> > I updated libpandoc (for C bindings) to the current version of >>>> pandoc >>>> > and made some improvements. I sent a pull request to toyvo, but it >>>> has >>>> > been left unanswered (he's probably not so active on github). In >>>> the >>>> > meantime, you could >>>> > [refer]([1]https://github.com/jgm/pandoc/wiki/Pandoc-Extras) to >>>> my fork >>>> > at: >>>> > [2]https://github.com/ShabbyX/libpandoc >>>> > Have a nice day, >>>> > Shahbaz >>>> > >>>> >>> -- >>> 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/pandoc-discuss/01aacd0c-291e-455d-9fc0-0673a904671c%40googlegroups.com >>> <https://groups.google.com/d/msgid/pandoc-discuss/01aacd0c-291e-455d-9fc0-0673a904671c%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/CALuQ0m_3c63CN4VLEqMM953bxi%3Dmou4M7%2Brukbdo9H1%3D7em7sQ%40mail.gmail.com >> <https://groups.google.com/d/msgid/pandoc-discuss/CALuQ0m_3c63CN4VLEqMM953bxi%3Dmou4M7%2Brukbdo9H1%3D7em7sQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CALeOzZ9_oPFaDY0FEnLSSOVno2Ut6oq0VAK1q5gYKYZwfQmimg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #2: Type: text/html, Size: 8687 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <CALeOzZ9_oPFaDY0FEnLSSOVno2Ut6oq0VAK1q5gYKYZwfQmimg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: C bindings [not found] ` <CALeOzZ9_oPFaDY0FEnLSSOVno2Ut6oq0VAK1q5gYKYZwfQmimg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2015-02-26 18:56 ` Shahbaz Youssefi [not found] ` <CALeOzZ8xyQC6w3xadF4q7szJW7XhXwGytHuvS1oX8S_b2AzKHA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 15+ messages in thread From: Shahbaz Youssefi @ 2015-02-26 18:56 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 6456 bytes --] @Matthew, so is that what's going to happen? Should I just wait for the next release of pandoc and those types would be derived? On Tue, Feb 24, 2015 at 4:00 PM, Shahbaz Youssefi <shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > P.S. libpandoc derives LibPandocSettings from those types because it uses > a Data.Generics.Rep.toRep function on it. > > On Tue, Feb 24, 2015 at 3:51 PM, Shahbaz Youssefi <shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > >> I would imagine it would. I can't say I really understand what they are, >> but bottom line is that [`LibPandocSettings` in the libpandoc >> implementation]( >> https://github.com/ShabbyX/libpandoc/blob/master/src/LibPandoc/Settings.hs#L10) >> contains `ReaderOptions` and `WriterOptions` and wants `deriving (Data, >> Typeable)`. >> >> Again, I wouldn't know why `LibPandocSettings` wants to be derived from >> those two types. I'll try to play around in the meantime, see if I can just >> remove this requirement. >> >> On Tue, Feb 24, 2015 at 3:44 PM, Matthew Pickering < >> matthewtpickering-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >>> Would it just be easier if we derived Data and Typeable instances in >>> pandoc? >>> >>> On Tue, Feb 24, 2015 at 2:39 PM, Shahbaz Youssefi <shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >>> wrote: >>> >>>> Hi, >>>> >>>> I'm updating libpandoc to align with pandoc 1.13, but I'm currently >>>> having a compilation issue that is beyond my understanding. >>>> >>>> In [LibPandoc/Instances.hs]( >>>> https://github.com/ShabbyX/libpandoc/blob/master/src/LibPandoc/Instances.hs), >>>> there is the following code, that had been working with pandoc 1.11: >>>> >>>> {-# LANGUAGE TemplateHaskell #-} >>>> >>>> module LibPandoc.Instances where >>>> >>>> import Data.Data >>>> import Data.DeriveTH >>>> import Text.Pandoc >>>> import Text.Pandoc.Shared >>>> import Text.Highlighting.Kate.Types >>>> >>>> $( derive makeTypeable ''ReaderOptions ) >>>> $( derive makeData ''ReaderOptions ) >>>> $( derive makeTypeable ''WriterOptions ) >>>> $( derive makeData ''WriterOptions ) >>>> ... >>>> >>>> From what I understand, `derive makeData` does some magic, so that >>>> later one could say `deriving (Data)` for a type that contains >>>> `ReaderOptions` and `WriterOptions`. With newer pandoc, it seems that some >>>> types were added. With `TrackChanges` used in `ReaderOptions`, I can add >>>> similar `derive makeTypeable/makeData` lines and everything is ok. With >>>> `MediaBag` used in `WriterOptions` however, I can't do this. >>>> >>>> Without `derive makeData` for `MediaBag`, I get the following error for >>>> `$( derive makeData WriterOptions )`: >>>> >>>> No instance for (Data MediaBag) arising from a use of `k' >>>> Possible fix: add an instance declaration for (Data MediaBag) >>>> In the expression: >>>> ... A VERY LONG EXPRESSION WITH A LOT OF `k` INFIX CALLS ... >>>> >>>> If I add `$( derive makeData MediaBag)` before, I get this error on it: >>>> >>>> Not in scope: data constructor `MediaBag' >>>> >>>> I have `import Text.Pandoc.MediaBag`. >>>> >>>> From what I could make out, the reason is probably that others, such as >>>> `TrackChanges` are defined with the `data` keyword, but `MediaBag` is >>>> defined with the `newtype` keyword. Is that so? How then, can I make `$( >>>> derive makeData ''MediaBag)` work? If not possible, how can I make `$( >>>> derive makeData ''WriterOptions )` work? >>>> >>>> Thanks for the help, >>>> Shahbaz >>>> >>>> On Sunday, June 30, 2013 at 8:30:37 PM UTC+2, fiddlosopher wrote: >>>>> >>>>> Thanks for doing this. I've updated pandoc-extras. >>>>> >>>>> +++ Shahbaz Youssefi [Jun 30 13 13:04 ]: >>>>> > Hi again, >>>>> > I updated libpandoc (for C bindings) to the current version of >>>>> pandoc >>>>> > and made some improvements. I sent a pull request to toyvo, but >>>>> it has >>>>> > been left unanswered (he's probably not so active on github). In >>>>> the >>>>> > meantime, you could >>>>> > [refer]([1]https://github.com/jgm/pandoc/wiki/Pandoc-Extras) to >>>>> my fork >>>>> > at: >>>>> > [2]https://github.com/ShabbyX/libpandoc >>>>> > Have a nice day, >>>>> > Shahbaz >>>>> > >>>>> >>>> -- >>>> 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/pandoc-discuss/01aacd0c-291e-455d-9fc0-0673a904671c%40googlegroups.com >>>> <https://groups.google.com/d/msgid/pandoc-discuss/01aacd0c-291e-455d-9fc0-0673a904671c%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >>> 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/pandoc-discuss/CALuQ0m_3c63CN4VLEqMM953bxi%3Dmou4M7%2Brukbdo9H1%3D7em7sQ%40mail.gmail.com >>> <https://groups.google.com/d/msgid/pandoc-discuss/CALuQ0m_3c63CN4VLEqMM953bxi%3Dmou4M7%2Brukbdo9H1%3D7em7sQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CALeOzZ8xyQC6w3xadF4q7szJW7XhXwGytHuvS1oX8S_b2AzKHA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #2: Type: text/html, Size: 9367 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <CALeOzZ8xyQC6w3xadF4q7szJW7XhXwGytHuvS1oX8S_b2AzKHA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: C bindings [not found] ` <CALeOzZ8xyQC6w3xadF4q7szJW7XhXwGytHuvS1oX8S_b2AzKHA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2015-02-26 23:02 ` Matthew Pickering [not found] ` <CALuQ0m980cpfsfEd2ugnwydg7jdqtdV44VLgNYhY8SX8-bpfoA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 15+ messages in thread From: Matthew Pickering @ 2015-02-26 23:02 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 7644 bytes --] Could you perhaps give me a list of what we are currently missing and I can add them in. There's no reason for us not to derive them as they can be derived for all types.. On Thu, Feb 26, 2015 at 6:56 PM, Shahbaz Youssefi <shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > @Matthew, so is that what's going to happen? Should I just wait for the > next release of pandoc and those types would be derived? > > On Tue, Feb 24, 2015 at 4:00 PM, Shahbaz Youssefi <shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > >> P.S. libpandoc derives LibPandocSettings from those types because it uses >> a Data.Generics.Rep.toRep function on it. >> >> On Tue, Feb 24, 2015 at 3:51 PM, Shahbaz Youssefi <shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> wrote: >> >>> I would imagine it would. I can't say I really understand what they are, >>> but bottom line is that [`LibPandocSettings` in the libpandoc >>> implementation]( >>> https://github.com/ShabbyX/libpandoc/blob/master/src/LibPandoc/Settings.hs#L10) >>> contains `ReaderOptions` and `WriterOptions` and wants `deriving (Data, >>> Typeable)`. >>> >>> Again, I wouldn't know why `LibPandocSettings` wants to be derived from >>> those two types. I'll try to play around in the meantime, see if I can just >>> remove this requirement. >>> >>> On Tue, Feb 24, 2015 at 3:44 PM, Matthew Pickering < >>> matthewtpickering-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>> >>>> Would it just be easier if we derived Data and Typeable instances in >>>> pandoc? >>>> >>>> On Tue, Feb 24, 2015 at 2:39 PM, Shahbaz Youssefi <shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >>>> wrote: >>>> >>>>> Hi, >>>>> >>>>> I'm updating libpandoc to align with pandoc 1.13, but I'm currently >>>>> having a compilation issue that is beyond my understanding. >>>>> >>>>> In [LibPandoc/Instances.hs]( >>>>> https://github.com/ShabbyX/libpandoc/blob/master/src/LibPandoc/Instances.hs), >>>>> there is the following code, that had been working with pandoc 1.11: >>>>> >>>>> {-# LANGUAGE TemplateHaskell #-} >>>>> >>>>> module LibPandoc.Instances where >>>>> >>>>> import Data.Data >>>>> import Data.DeriveTH >>>>> import Text.Pandoc >>>>> import Text.Pandoc.Shared >>>>> import Text.Highlighting.Kate.Types >>>>> >>>>> $( derive makeTypeable ''ReaderOptions ) >>>>> $( derive makeData ''ReaderOptions ) >>>>> $( derive makeTypeable ''WriterOptions ) >>>>> $( derive makeData ''WriterOptions ) >>>>> ... >>>>> >>>>> From what I understand, `derive makeData` does some magic, so that >>>>> later one could say `deriving (Data)` for a type that contains >>>>> `ReaderOptions` and `WriterOptions`. With newer pandoc, it seems that some >>>>> types were added. With `TrackChanges` used in `ReaderOptions`, I can add >>>>> similar `derive makeTypeable/makeData` lines and everything is ok. With >>>>> `MediaBag` used in `WriterOptions` however, I can't do this. >>>>> >>>>> Without `derive makeData` for `MediaBag`, I get the following error >>>>> for `$( derive makeData WriterOptions )`: >>>>> >>>>> No instance for (Data MediaBag) arising from a use of `k' >>>>> Possible fix: add an instance declaration for (Data MediaBag) >>>>> In the expression: >>>>> ... A VERY LONG EXPRESSION WITH A LOT OF `k` INFIX CALLS ... >>>>> >>>>> If I add `$( derive makeData MediaBag)` before, I get this error on it: >>>>> >>>>> Not in scope: data constructor `MediaBag' >>>>> >>>>> I have `import Text.Pandoc.MediaBag`. >>>>> >>>>> From what I could make out, the reason is probably that others, such >>>>> as `TrackChanges` are defined with the `data` keyword, but `MediaBag` is >>>>> defined with the `newtype` keyword. Is that so? How then, can I make `$( >>>>> derive makeData ''MediaBag)` work? If not possible, how can I make `$( >>>>> derive makeData ''WriterOptions )` work? >>>>> >>>>> Thanks for the help, >>>>> Shahbaz >>>>> >>>>> On Sunday, June 30, 2013 at 8:30:37 PM UTC+2, fiddlosopher wrote: >>>>>> >>>>>> Thanks for doing this. I've updated pandoc-extras. >>>>>> >>>>>> +++ Shahbaz Youssefi [Jun 30 13 13:04 ]: >>>>>> > Hi again, >>>>>> > I updated libpandoc (for C bindings) to the current version of >>>>>> pandoc >>>>>> > and made some improvements. I sent a pull request to toyvo, but >>>>>> it has >>>>>> > been left unanswered (he's probably not so active on github). In >>>>>> the >>>>>> > meantime, you could >>>>>> > [refer]([1]https://github.com/jgm/pandoc/wiki/Pandoc-Extras) to >>>>>> my fork >>>>>> > at: >>>>>> > [2]https://github.com/ShabbyX/libpandoc >>>>>> > Have a nice day, >>>>>> > Shahbaz >>>>>> > >>>>>> >>>>> -- >>>>> 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/pandoc-discuss/01aacd0c-291e-455d-9fc0-0673a904671c%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/pandoc-discuss/01aacd0c-291e-455d-9fc0-0673a904671c%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> -- >>>> 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/pandoc-discuss/CALuQ0m_3c63CN4VLEqMM953bxi%3Dmou4M7%2Brukbdo9H1%3D7em7sQ%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/pandoc-discuss/CALuQ0m_3c63CN4VLEqMM953bxi%3Dmou4M7%2Brukbdo9H1%3D7em7sQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> >> > -- > 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/CALeOzZ8xyQC6w3xadF4q7szJW7XhXwGytHuvS1oX8S_b2AzKHA%40mail.gmail.com > <https://groups.google.com/d/msgid/pandoc-discuss/CALeOzZ8xyQC6w3xadF4q7szJW7XhXwGytHuvS1oX8S_b2AzKHA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CALuQ0m980cpfsfEd2ugnwydg7jdqtdV44VLgNYhY8SX8-bpfoA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #2: Type: text/html, Size: 11073 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <CALuQ0m980cpfsfEd2ugnwydg7jdqtdV44VLgNYhY8SX8-bpfoA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: C bindings [not found] ` <CALuQ0m980cpfsfEd2ugnwydg7jdqtdV44VLgNYhY8SX8-bpfoA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2015-02-27 10:03 ` Shahbaz Youssefi 0 siblings, 0 replies; 15+ messages in thread From: Shahbaz Youssefi @ 2015-02-27 10:03 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 8956 bytes --] As far as I could figure out, it's ReaderOptions and WriterOptions that need to be derived from Data and Typeable. Thanks a lot! P.S. Please let me know the commit that adds this. I'm curious to know how you make WriterOptions derive from Data. On Fri, Feb 27, 2015 at 12:02 AM, Matthew Pickering < matthewtpickering-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Could you perhaps give me a list of what we are currently missing and I > can add them in. There's no reason for us not to derive them as they can be > derived for all types.. > > On Thu, Feb 26, 2015 at 6:56 PM, Shahbaz Youssefi <shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > >> @Matthew, so is that what's going to happen? Should I just wait for the >> next release of pandoc and those types would be derived? >> >> On Tue, Feb 24, 2015 at 4:00 PM, Shahbaz Youssefi <shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> wrote: >> >>> P.S. libpandoc derives LibPandocSettings from those types because it >>> uses a Data.Generics.Rep.toRep function on it. >>> >>> On Tue, Feb 24, 2015 at 3:51 PM, Shahbaz Youssefi <shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >>> wrote: >>> >>>> I would imagine it would. I can't say I really understand what they >>>> are, but bottom line is that [`LibPandocSettings` in the libpandoc >>>> implementation]( >>>> https://github.com/ShabbyX/libpandoc/blob/master/src/LibPandoc/Settings.hs#L10) >>>> contains `ReaderOptions` and `WriterOptions` and wants `deriving (Data, >>>> Typeable)`. >>>> >>>> Again, I wouldn't know why `LibPandocSettings` wants to be derived from >>>> those two types. I'll try to play around in the meantime, see if I can just >>>> remove this requirement. >>>> >>>> On Tue, Feb 24, 2015 at 3:44 PM, Matthew Pickering < >>>> matthewtpickering-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>>> >>>>> Would it just be easier if we derived Data and Typeable instances in >>>>> pandoc? >>>>> >>>>> On Tue, Feb 24, 2015 at 2:39 PM, Shahbaz Youssefi <shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >>>>> wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I'm updating libpandoc to align with pandoc 1.13, but I'm currently >>>>>> having a compilation issue that is beyond my understanding. >>>>>> >>>>>> In [LibPandoc/Instances.hs]( >>>>>> https://github.com/ShabbyX/libpandoc/blob/master/src/LibPandoc/Instances.hs), >>>>>> there is the following code, that had been working with pandoc 1.11: >>>>>> >>>>>> {-# LANGUAGE TemplateHaskell #-} >>>>>> >>>>>> module LibPandoc.Instances where >>>>>> >>>>>> import Data.Data >>>>>> import Data.DeriveTH >>>>>> import Text.Pandoc >>>>>> import Text.Pandoc.Shared >>>>>> import Text.Highlighting.Kate.Types >>>>>> >>>>>> $( derive makeTypeable ''ReaderOptions ) >>>>>> $( derive makeData ''ReaderOptions ) >>>>>> $( derive makeTypeable ''WriterOptions ) >>>>>> $( derive makeData ''WriterOptions ) >>>>>> ... >>>>>> >>>>>> From what I understand, `derive makeData` does some magic, so that >>>>>> later one could say `deriving (Data)` for a type that contains >>>>>> `ReaderOptions` and `WriterOptions`. With newer pandoc, it seems that some >>>>>> types were added. With `TrackChanges` used in `ReaderOptions`, I can add >>>>>> similar `derive makeTypeable/makeData` lines and everything is ok. With >>>>>> `MediaBag` used in `WriterOptions` however, I can't do this. >>>>>> >>>>>> Without `derive makeData` for `MediaBag`, I get the following error >>>>>> for `$( derive makeData WriterOptions )`: >>>>>> >>>>>> No instance for (Data MediaBag) arising from a use of `k' >>>>>> Possible fix: add an instance declaration for (Data MediaBag) >>>>>> In the expression: >>>>>> ... A VERY LONG EXPRESSION WITH A LOT OF `k` INFIX CALLS ... >>>>>> >>>>>> If I add `$( derive makeData MediaBag)` before, I get this error on >>>>>> it: >>>>>> >>>>>> Not in scope: data constructor `MediaBag' >>>>>> >>>>>> I have `import Text.Pandoc.MediaBag`. >>>>>> >>>>>> From what I could make out, the reason is probably that others, such >>>>>> as `TrackChanges` are defined with the `data` keyword, but `MediaBag` is >>>>>> defined with the `newtype` keyword. Is that so? How then, can I make `$( >>>>>> derive makeData ''MediaBag)` work? If not possible, how can I make `$( >>>>>> derive makeData ''WriterOptions )` work? >>>>>> >>>>>> Thanks for the help, >>>>>> Shahbaz >>>>>> >>>>>> On Sunday, June 30, 2013 at 8:30:37 PM UTC+2, fiddlosopher wrote: >>>>>>> >>>>>>> Thanks for doing this. I've updated pandoc-extras. >>>>>>> >>>>>>> +++ Shahbaz Youssefi [Jun 30 13 13:04 ]: >>>>>>> > Hi again, >>>>>>> > I updated libpandoc (for C bindings) to the current version of >>>>>>> pandoc >>>>>>> > and made some improvements. I sent a pull request to toyvo, but >>>>>>> it has >>>>>>> > been left unanswered (he's probably not so active on github). >>>>>>> In the >>>>>>> > meantime, you could >>>>>>> > [refer]([1]https://github.com/jgm/pandoc/wiki/Pandoc-Extras) >>>>>>> to my fork >>>>>>> > at: >>>>>>> > [2]https://github.com/ShabbyX/libpandoc >>>>>>> > Have a nice day, >>>>>>> > Shahbaz >>>>>>> > >>>>>>> >>>>>> -- >>>>>> 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>>>> To view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/pandoc-discuss/01aacd0c-291e-455d-9fc0-0673a904671c%40googlegroups.com >>>>>> <https://groups.google.com/d/msgid/pandoc-discuss/01aacd0c-291e-455d-9fc0-0673a904671c%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>> . >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>> >>>>> -- >>>>> 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/pandoc-discuss/CALuQ0m_3c63CN4VLEqMM953bxi%3Dmou4M7%2Brukbdo9H1%3D7em7sQ%40mail.gmail.com >>>>> <https://groups.google.com/d/msgid/pandoc-discuss/CALuQ0m_3c63CN4VLEqMM953bxi%3Dmou4M7%2Brukbdo9H1%3D7em7sQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> >>> >> -- >> 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/CALeOzZ8xyQC6w3xadF4q7szJW7XhXwGytHuvS1oX8S_b2AzKHA%40mail.gmail.com >> <https://groups.google.com/d/msgid/pandoc-discuss/CALeOzZ8xyQC6w3xadF4q7szJW7XhXwGytHuvS1oX8S_b2AzKHA%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- > 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/CALuQ0m980cpfsfEd2ugnwydg7jdqtdV44VLgNYhY8SX8-bpfoA%40mail.gmail.com > <https://groups.google.com/d/msgid/pandoc-discuss/CALuQ0m980cpfsfEd2ugnwydg7jdqtdV44VLgNYhY8SX8-bpfoA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CALeOzZ85gD98v54g70R9Ez%2BjMgTg3rvtTJ6h4L%2BT%3DkeupPs75w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #2: Type: text/html, Size: 13007 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2021-06-02 10:53 UTC | newest] Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-06-02 10:23 C bindings Esteban Lorenzano [not found] ` <058b4e30-1bcc-4b5a-be92-d47e7abf47d7n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2021-06-02 10:53 ` Albert Krewinkel -- strict thread matches above, loose matches on Subject: below -- 2013-06-26 16:32 Shahbaz Youssefi [not found] ` <cc84a902-1bc5-433f-b176-ce71dd8e3acd-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2013-06-26 17:14 ` John MacFarlane [not found] ` <20130626171432.GA1663-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org> 2013-06-28 9:23 ` Shahbaz Youssefi [not found] ` <CALeOzZ_ypqU1fT=cBd8-JNLBeEG3RK0v2VJ1JTh3Q1FS11n6uQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2013-06-28 12:12 ` Shahbaz Youssefi [not found] ` <CALeOzZ-Gf=QTQdWa6yb8yG3EWiOUE1kmmUHwT9Axj6aHgPhedQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2013-06-30 11:04 ` Shahbaz Youssefi [not found] ` <CALeOzZ_BcVwuYTJwpQBSOhd9FMbU=Nu_F4=TtDeHLfNc2h3LYQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2013-06-30 18:30 ` John MacFarlane [not found] ` <20130630183036.GA17415-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org> 2015-02-24 14:39 ` Shahbaz Youssefi [not found] ` <01aacd0c-291e-455d-9fc0-0673a904671c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2015-02-24 14:44 ` Matthew Pickering [not found] ` <CALuQ0m_3c63CN4VLEqMM953bxi=mou4M7+rukbdo9H1=7em7sQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2015-02-24 14:51 ` Shahbaz Youssefi [not found] ` <CALeOzZ9Ru015fD-=djS34LYOryiaCXs6NnmbBP=51L-9ZxexTg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2015-02-24 15:00 ` Shahbaz Youssefi [not found] ` <CALeOzZ9_oPFaDY0FEnLSSOVno2Ut6oq0VAK1q5gYKYZwfQmimg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2015-02-26 18:56 ` Shahbaz Youssefi [not found] ` <CALeOzZ8xyQC6w3xadF4q7szJW7XhXwGytHuvS1oX8S_b2AzKHA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2015-02-26 23:02 ` Matthew Pickering [not found] ` <CALuQ0m980cpfsfEd2ugnwydg7jdqtdV44VLgNYhY8SX8-bpfoA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2015-02-27 10:03 ` Shahbaz Youssefi
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).