jaspervdj/patat

support for pandoc-2.9

juhp opened this issue · 1 comments

juhp commented

It would be nice to support pandoc 2.9, so that patat can build with LTS 16.

lib/Patat/Presentation/Fragment.hs:59:68: error:
    • Couldn't match expected type ‘Data.Text.Internal.Text’
                  with actual type ‘[Char]’
    • In the first argument of ‘Pandoc.Str’, namely ‘"."’
      In the second argument of ‘replicate’, namely ‘(Pandoc.Str ".")’
      In the second argument of ‘($)’, namely
        ‘replicate 3 (Pandoc.Str ".")’
   |
59 |     threeDots = intersperse Pandoc.Space $ replicate 3 (Pandoc.Str ".")
   |                                                                    ^^^

Thanks for reporting! Supporting both the string-based Pandoc and the new text-based version seems like a bit of work, so I'm leaning towards supporting Pandoc >= 2.9 only in the next release.