diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-03-25 13:43:34 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-03-25 13:43:34 -0700 |
commit | 08d1404b31a0fd6edd94b1e5674d3b07d8e4de6a (patch) | |
tree | 50da9349394e6dba321b4f938a7f3f6b3f78b714 /tests/tables.mediawiki | |
parent | 5e69f845d534964bd3d0d1fe275b5cecc0bf3098 (diff) | |
download | pandoc-08d1404b31a0fd6edd94b1e5674d3b07d8e4de6a.tar.gz |
API changes to HasReaderOptions, HasHeaderMap, HasIdentifierList.
Previously these were typeclasses of monads. They've been changed
to be typeclasses of states. This ismplifies the instance definitions
and provides more flexibility.
This is an API change! However, it should be backwards compatible
unless you're defining instances of HasReaderOptions, HasHeaderMap,
or HasIdentifierList. The old getOption function should work as
before (albeit with a more general type).
The function askReaderOption has been removed.
extractReaderOptions has been added.
getOption has been given a default definition.
In HasHeaderMap, extractHeaderMap and updateHeaderMap have been added.
Default definitions have been given for getHeaderMap, putHeaderMap,
and modifyHeaderMap.
In HasIdentifierList, extractIdentifierList and updateIdentifierList
have been added. Default definitions have been given for
getIdentifierList, putIdentifierList, and modifyIdentifierList.
The ultimate goal here is to allow different parsers to use their
own, tailored parser states (instead of ParserState) while still
using shared functions.
Diffstat (limited to 'tests/tables.mediawiki')
0 files changed, 0 insertions, 0 deletions