diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-03-25 14:55:18 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-03-25 14:55:18 -0700 |
commit | 6992050161f1bbe8d18d7d78beb3b38a4b69a23e (patch) | |
tree | 9549e9e9ca73cc7f01264930ceca8066a14e7f00 /src/Text/Pandoc/Readers/MediaWiki.hs | |
parent | 6ec3ee3a67c30d2e83f638035521896cbbd70f1e (diff) | |
download | pandoc-6992050161f1bbe8d18d7d78beb3b38a4b69a23e.tar.gz |
Parsing: Added HasMacros, simplified other typeclasses.
Removed updateHeaderMap, setHeaderMap, getHeaderMap,
updateIdentifierList, setIdentifierList, getIdentifierList.
Diffstat (limited to 'src/Text/Pandoc/Readers/MediaWiki.hs')
-rw-r--r-- | src/Text/Pandoc/Readers/MediaWiki.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/MediaWiki.hs b/src/Text/Pandoc/Readers/MediaWiki.hs index 7bad4d346..f70b44aad 100644 --- a/src/Text/Pandoc/Readers/MediaWiki.hs +++ b/src/Text/Pandoc/Readers/MediaWiki.hs @@ -87,11 +87,11 @@ instance HasReaderOptions MWState where instance HasHeaderMap MWState where extractHeaderMap = mwHeaderMap - updateHeaderMap x st = st{ mwHeaderMap = x } + updateHeaderMap f st = st{ mwHeaderMap = f $ mwHeaderMap st } instance HasIdentifierList MWState where extractIdentifierList = mwIdentifierList - updateIdentifierList x st = st{ mwIdentifierList = x } + updateIdentifierList f st = st{ mwIdentifierList = f $ mwIdentifierList st } -- -- auxiliary functions |