git.iko.soy/typeable/pandoc
on master help sign in
Make 'weigh-pandoc' into a benchmark program.
9dac007John MacFarlane
pandoc.cabal+7−14
@@ -335,10 +335,6 @@ flag trypandoc
335 Description: Build trypandoc cgi executable.
335 Description: Build trypandoc cgi executable.
336 Default: False
336 Default: False
337
337
338−flag weigh-pandoc
339− Description: Build weigh-pandoc to measure memory usage.
340− Default: False
341−
342flag network-uri
338flag network-uri
343 Description: Get Network.URI from the network-uri package
339 Description: Get Network.URI from the network-uri package
344 Default: True
340 Default: True
@@ -588,18 +584,15 @@ executable trypandoc
588 other-modules: Prelude
584 other-modules: Prelude
589 build-depends: base-compat >= 0.9
585 build-depends: base-compat >= 0.9
590
586
591−executable weigh-pandoc
587+benchmark weigh-pandoc
588+ type: exitcode-stdio-1.0
592 main-is: weigh-pandoc.hs
589 main-is: weigh-pandoc.hs
593 hs-source-dirs: benchmark
590 hs-source-dirs: benchmark
594− if flag(weigh-pandoc)
595− build-depends: pandoc,
591+ build-depends: pandoc,
596− base >= 4.2 && < 5,
592+ base >= 4.2 && < 5,
597− text,
593+ text,
598− weigh >= 0.0 && < 0.1,
594+ weigh >= 0.0 && < 0.1,
599− mtl >= 2.2 && < 2.3
595+ mtl >= 2.2 && < 2.3
600− buildable: True
601− else
602− buildable: False
603 if impl(ghc < 8.0)
596 if impl(ghc < 8.0)
604 build-depends: semigroups == 0.18.*
597 build-depends: semigroups == 0.18.*
605 if impl(ghc < 8.4)
598 if impl(ghc < 8.4)