kivikakk / cmark-gfm-hs

Haskell bindings to libcmark-gfm GitHub Flavored Markdown parser
Other
13 stars 6 forks source link

bench/bench-cmark.hs:23:24: error: Couldn't match type ‘Text -> Text’ with ‘Text’ #5

Closed juhp closed 6 years ago

juhp commented 7 years ago

Benchmarks failing to build in Stackage Nightly:

Building benchmark 'bench-cmark-gfm' for cmark-gfm-0.1.3..
[1 of 1] Compiling Main             ( bench/bench-cmark.hs, dist/build/bench-cmark-gfm/bench-cmark-gfm-tmp/Main.o )

bench/bench-cmark.hs:23:24: error:
    • Couldn't match type ‘Text -> Text’ with ‘Text’
      Expected type: Text -> Text
        Actual type: [CMarkGFM.CMarkExtension] -> Text -> Text
    • Probable cause: ‘CMarkGFM.commonmarkToHtml’ is applied to too few arguments
      In the second argument of ‘mkBench’, namely
        ‘(CMarkGFM.commonmarkToHtml [])’
      In the expression:
        mkBench "cmark" (CMarkGFM.commonmarkToHtml []) sample
      In the first argument of ‘defaultMain’, namely
        ‘[mkBench
            "cheapskate"
            (T.concat
               . toChunks
                   . Blaze.renderHtml
                       . CheapskateHtml.renderDoc . Cheapskate.markdown Markdown.def)
            sample,
          mkBench "discount" (Discount.parseMarkdownUtf8 []) sample,
          mkBench
            "markdown"
            (T.concat
               . toChunks
                   . Blaze.renderHtml
                       . Markdown.markdown Markdown.def . fromChunks . (: []))
            sample,
          mkBench "cmark" (CMarkGFM.commonmarkToHtml []) sample]’
   |
23 |     , mkBench "cmark" (CMarkGFM.commonmarkToHtml []) sample
   |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
kivikakk commented 6 years ago

Fixed in master.