From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/6676 Path: news.gmane.org!not-for-mail From: Shahbaz Youssefi Newsgroups: gmane.text.pandoc Subject: Re: C bindings Date: Fri, 28 Jun 2013 14:12:37 +0200 Message-ID: References: <20130626171432.GA1663@protagoras.phil.berkeley.edu> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae94735af67b76f04e035cbcd X-Trace: ger.gmane.org 1372421559 21389 80.91.229.3 (28 Jun 2013 12:12:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Jun 2013 12:12:39 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCROTOMZXUKRBNX3WWHAKGQE3XHGGSQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jun 28 14:12:42 2013 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-fa0-f56.google.com ([209.85.161.56]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UsXXb-0004xg-04 for gtp-pandoc-discuss@m.gmane.org; Fri, 28 Jun 2013 14:12:39 +0200 Original-Received: by mail-fa0-f56.google.com with SMTP id a11sf387531fad.21 for ; Fri, 28 Jun 2013 05:12:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-beenthere:mime-version:in-reply-to:references:date:message-id :subject:from:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-google-group-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=tD+HLIUDRjUY71yIcCy1CdPCS5FFd8x3nhbgPcY21sg=; b=T8H2Oglp/uuMsMA5uMlcPuyCPo9ttijNdsq07WeLZZxpwTOS7c9tm8z8VUhJ2eBq4c hhUHfRJeek2kkxRMcWO1DCcK3S+X7y3v2r7uh+y5iqZwy+azZVjDp9L5g/URAnD0Un84 5+kHKr3izP4mxEoN2K4RAsq3vfy8QaX2SHHKCoxzEXhTVQx31YA/piLJiif/qRMDq9jW UbRCeYO0avRV08zbdP/RfBdYNGHOzVAjCgO3LIfeXqXsa8SRF2bcQ7HisxT57vI4rEJz dIBdDx6X5RlaSsJMD6HfVhnpl1Zmo0JjPxxb2intdCwJ2YluDmsrD6V9V5mJw8cACgum 8+hw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-beenthere:mime-version:in-reply-to:references:date:message-id :subject:from:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-google-group-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=tD+HLIUDRjUY71yIcCy1CdPCS5FFd8x3nhbgPcY21sg=; b=TqgfdFSdxHQmBSkTZEP3DOqfKBtGjfCl04WR/2gtY8lpjMg4155gsSZmSv2JHBGmrD rDZnyuS3hWB6ZJ08UuBquK7YkUo/hYp+sp9GYPsE84ignG5zWuMBayUQ7VfRvd3EFpQY 69MbrabMIoWcvFC2HQW8dNQeBEiaD+VkpkKdRwXXQzctfRtWtoTCcxReLgyew7qE9bci PQc/qMPEhDqmzQDWXqkOWsRG6L/TVzEfGaHVIvs2c1YeDb97TzjCXW2q5gtnWXpP5RHN 9Nr9zaGrG1Kg6ai5iIo3mhpRedKsuYSj2g3D/EbDlFcMWeXt9tE7tXjQk7dU7lE6JvMA zEeg== X-Received: by 10.180.9.66 with SMTP id x2mr97959wia.4.1372421558630; Fri, 28 Jun 2013 05:12:38 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.180.90.243 with SMTP id bz19ls164121wib.6.gmail; Fri, 28 Jun 2013 05:12:37 -0700 (PDT) X-Received: by 10.204.106.67 with SMTP id w3mr610634bko.2.1372421557724; Fri, 28 Jun 2013 05:12:37 -0700 (PDT) Original-Received: from mail-la0-x22c.google.com (mail-la0-x22c.google.com [2a00:1450:4010:c03::22c]) by gmr-mx.google.com with ESMTPS id rg9si298520bkb.3.2013.06.28.05.12.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Jun 2013 05:12:37 -0700 (PDT) Received-SPF: pass (google.com: domain of shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4010:c03::22c as permitted sender) client-ip=2a00:1450:4010:c03::22c; Original-Received: by mail-la0-f44.google.com with SMTP id er20so2090666lab.31 for ; Fri, 28 Jun 2013 05:12:37 -0700 (PDT) X-Received: by 10.112.73.210 with SMTP id n18mr6397286lbv.90.1372421557301; Fri, 28 Jun 2013 05:12:37 -0700 (PDT) Original-Received: by 10.112.6.170 with HTTP; Fri, 28 Jun 2013 05:12:37 -0700 (PDT) In-Reply-To: X-Original-Sender: shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4010:c03::22c as permitted sender) smtp.mail=shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dkim=pass header.i=@gmail.com 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: Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-Subscribe: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:6676 Archived-At: --14dae94735af67b76f04e035cbcd Content-Type: text/plain; charset=ISO-8859-1 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 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 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. --14dae94735af67b76f04e035cbcd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
It seems like that was an error in the package itself. Thi= s [question](http://= stackoverflow.com/q/17361047/912144) and its answer have the solution.<= br>


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 (actuall= y above 1.10) where I came to a build issue that I'm not sure how to re= solve.

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-pcr= e-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 reinst= all regex-pcre-builtin with cabal gives a warning that it may break pandoc.=

The offending source code is this:
=
{-# LANGUAGE TemplateHaskell #-}

module LibPandoc.Instances wher= e

import Data.Data
import Data.DeriveTH
import Text.Pandoc
import Text.Pandoc.Shared

$( derive makeTypeable ''ReaderOpt= ions )
$( derive makeData ''ReaderOptions )
$( derive makeTyp= eable ''WriterOptions )
$( derive makeData ''WriterOptio= ns )
$( derive makeTypeable ''HTMLMathMethod )
$( derive makeData = 9;'HTMLMathMethod )
$( derive makeTypeable ''ObfuscationMeth= od )
$( derive makeData ''ObfuscationMethod )

Can you see anything wrong there?

Thank you again for the help,
<= /div>
Shahbaz

On Wed, Jun 26, 2013= at 7:14 PM, John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> w= rote:
There is
https://gi= thub.com/toyvo/libpandoc
but I'm not sure when it was last updated.

+++ Shahbaz Youssefi [Jun 26 13 09:32 ]:
> =A0 =A0Hi,
> =A0 =A0I just came to know pandoc and it seems wonderful and I'm p= lanning on
> =A0 =A0using it in a project of mine. My project however is written in= C.
> =A0 =A0Given that making C bindings is a common operation for many lan= guages
> =A0 =A0(and I saw that for Haskell it too is possible), I was wonderin= g if
> =A0 =A0pandoc has any C bindings? If not, would it be a possibility to= make
> =A0 =A0those bindings?
> =A0 =A0I know very basic Haskell, but I might be able to make the bind= ings
> =A0 =A0myself with some struggle, if the developers are interested.. > =A0 =A0Thank you,
> =A0 =A0Shahbaz
>
> =A0 =A0--
> =A0 =A0You received this message because you are subscribed to the Goo= gle
> =A0 =A0Groups "pandoc-discuss" group.
> =A0 =A0To unsubscribe from this group and stop receiving emails from i= t, send
> =A0 =A0an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org= .
> =A0 =A0To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<= /a>.
> =A0 =A0To view this discussion on the web visit
> =A0 =A0[1]https://groups.google.com/d/ms= gid/pandoc-discuss/cc84a902-1bc5-433f-
> =A0 =A0b176-ce71dd8e3acd%40googlegroups.com.
> =A0 =A0For more options, visit [2]https://groups.google.com/groups/opt_out= .
>
> References
>
> =A0 =A01. = https://groups.google.com/d/msgid/pandoc-discuss/cc84a902-1bc5-433f-b176-ce= 71dd8e3acd%40googlegroups.com
> =A0 =A02. https://groups.google.com/groups/opt_out

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@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 https://groups.google.com/d/msgid/pandoc-discu= ss/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 &= quot;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 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/CAL= eOzZ-Gf%3DQTQdWa6yb8yG3EWiOUE1kmmUHwT9Axj6aHgPhedQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
 
 
--14dae94735af67b76f04e035cbcd--