Tighten up HasQuoteContext instance in HTML reader.
We constrain it to the state used in the HTML reader.
Otherwise we can get overlap with the general instance
for ParserState m.
commit547c32939b1dc6553c2cfb2d9893c2a536a77fb7
authorJohn MacFarlane <jgm@berkeley.edu>
dateMon 20 Feb 2017, 15:51 (10 years ago)
parentb246e8e
src/Text/Pandoc/Readers/HTML.hs+1−1
@@ -1092,7 +1092,7 @@ instance HasHeaderMap HTMLState where
10921092
10931093-- This signature should be more general
10941094-- MonadReader HTMLLocal m => HasQuoteContext st m
1095−instance PandocMonad m => HasQuoteContext st (ReaderT HTMLLocal m) where
1095+instance PandocMonad m => HasQuoteContext HTMLState (ReaderT HTMLLocal m) where
10961096 getQuoteContext = asks quoteContext
10971097 withQuoteContext q = local (\s -> s{quoteContext = q})
10981098