ShabbyX / libpandoc

C bindings to Pandoc, a markup converter library written in Haskell.
90 stars 16 forks source link

while building i got this error: #16

Open renwuxun opened 6 years ago

renwuxun commented 6 years ago

[3 of 3] Compiling LibPandoc ( src/LibPandoc.hs, dist/build/libpandoc.so/libpandoc.so-tmp/LibPandoc.o )

src/LibPandoc.hs:88:5: Not in scope: data constructor `StringReader'

src/LibPandoc.hs:95:5: Not in scope: data constructor PureStringWriter' Perhaps you meantByteStringWriter' (imported from Text.Pandoc)

src/LibPandoc.hs:97:5: Not in scope: data constructor IOStringWriter' Perhaps you meantByteStringWriter' (imported from Text.Pandoc)

src/LibPandoc.hs:99:5: Not in scope: data constructor IOByteStringWriter' Perhaps you meantByteStringWriter' (imported from Text.Pandoc) Makefile:6: recipe for target 'main' failed

ShabbyX commented 6 years ago

I haven't been able to do much recently (new baby), and I doubt I would have much time to dig into this. I find that Haskell libraries are generally not that stable, so every now and then something like this happens.

That said, it could help if you give some info, like what OS you are on + the version of some of the relevant libraries that are installed (pandoc at least)

jesong commented 6 years ago

Seems Pandoc 2.0 changed their code base a lot. And they removed PreStringWriter IOStringWriter and IOByteStringWriter. The current libpandoc code could not support the new change.