pandoc/test/Tests
Joseph C. Sible a5a3ac9946
Various minor cleanups and refactoring (#6117)
* Use concatMap instead of reimplementing it

* Replace an unnecessary multi-way if with a regular if

* Use sortOn instead of sortBy and comparing

* Use guards instead of lots of indents for if and else

* Remove redundant do blocks

* Extract common functions from both branches of maybe

Whenever both the Nothing and the Just branch of maybe do the same
function, do that function on the result of maybe instead.

* Use fmap instead of reimplementing it from maybe

* Use negative forms instead of negating the positive forms

* Use mapMaybe instead of mapping and then using catMaybes

* Use zipWith instead of mapping over the result of zip

* Use unwords instead of reimplementing it

* Use <$ instead of <$> and const

* Replace case of Bool with if and else

* Use find instead of listToMaybe and filter

* Use zipWithM instead of mapM and zip

* Inline lambda wrappers into the real functions

* We get zipWithM from Text.Pandoc.Writers.Shared

* Use maybe instead of fromMaybe and fmap

I'm not sure how this one slipped past me.

* Increase a bit of indentation
2020-02-07 08:38:24 +01:00
..
Lua Add tests for pandoc.List module 2020-01-11 17:42:32 +01:00
Readers HTML reader tests: modify round-trip tests... 2019-12-21 12:15:35 -08:00
Writers LaTeX writer: properly handle unnumbered headings level 4+. 2020-01-01 22:32:27 -07:00
Command.hs Various minor cleanups and refactoring (#6117) 2020-02-07 08:38:24 +01:00
Helpers.hs Switch to new pandoc-types and use Text instead of String [API change]. 2019-11-12 16:03:45 -08:00
Lua.hs Lua filters: allow filtering of element lists (#6040) 2020-01-15 14:26:00 -08:00
Old.hs Add jira reader (#5913) 2019-12-17 21:07:46 -08:00
Shared.hs Switch to new pandoc-types and use Text instead of String [API change]. 2019-11-12 16:03:45 -08:00