From 7a8c830734688a6ff9db805df8e3e5a9bd71033f Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Thu, 30 Nov 2017 15:56:44 -0800
Subject: [PATCH] Use latest tagsoup.

This fixes a bug in parsing tags with `&` following.

Closes #4094.  Closes #4088.
---
 pandoc.cabal   | 2 +-
 stack.pkg.yaml | 5 +++--
 stack.yaml     | 3 ++-
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/pandoc.cabal b/pandoc.cabal
index 26af5bcbc..9f769023c 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -317,7 +317,7 @@ library
                  pandoc-types >= 1.17.3 && < 1.18,
                  aeson >= 0.7 && < 1.3,
                  aeson-pretty >= 0.8 && < 0.9,
-                 tagsoup >= 0.13.7 && < 0.15,
+                 tagsoup >= 0.14.2 && < 0.15,
                  base64-bytestring >= 0.1 && < 1.1,
                  zlib >= 0.5 && < 0.7,
                  skylighting >= 0.4.4.1 && < 0.5,
diff --git a/stack.pkg.yaml b/stack.pkg.yaml
index 0d1d1742c..49d6310f4 100644
--- a/stack.pkg.yaml
+++ b/stack.pkg.yaml
@@ -23,6 +23,7 @@ extra-deps:
 - tasty-quickcheck-0.9.1
 - hs-bibutils-6.2.0.1
 - doctemplates-0.2.1
-- haddock-library-1.4.3
 - pandoc-citeproc-0.12.1
-resolver: lts-9.9
+- haddock-library-1.4.3
+- tagsoup-0.14.2
+resolver: lts-9.14
diff --git a/stack.yaml b/stack.yaml
index 38112c49d..c6f602f91 100644
--- a/stack.yaml
+++ b/stack.yaml
@@ -17,4 +17,5 @@ extra-deps:
 - tasty-quickcheck-0.9.1
 - doctemplates-0.2.1
 - haddock-library-1.4.3
-resolver: lts-9.9
+- tagsoup-0.14.2
+resolver: lts-9.14