diff options
| author | John MacFarlane <[email protected]> | 2016-12-11 22:19:17 +0100 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2017-01-25 17:07:41 +0100 |
| commit | be140ab496034f3b585d70859b652d4452ec3e03 (patch) | |
| tree | d4991a972fd89ced29cb73ceaee1523951a6bd21 /tools/extract-changes.hs | |
| parent | 00240ca7ed84c377880817c85c25dce8cfaff3cd (diff) | |
Moved extract-changes.hs and github-upload.sh to tools/.
Diffstat (limited to 'tools/extract-changes.hs')
| -rw-r--r-- | tools/extract-changes.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/extract-changes.hs b/tools/extract-changes.hs new file mode 100644 index 000000000..8c8160c2c --- /dev/null +++ b/tools/extract-changes.hs @@ -0,0 +1,9 @@ +-- Extract changes from latest version in changelog. +import Text.Pandoc.JSON + +main = toJSONFilter extractFirst + +extractFirst :: Pandoc -> Pandoc +extractFirst (Pandoc meta (Para{} : BulletList bs : _)) = + Pandoc meta [BulletList bs] +extractFirst x = x |
