diff options
author | Jesse Rosenthal <jrosenthal@jhu.edu> | 2016-12-03 23:39:01 -0500 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-01-25 17:07:40 +0100 |
commit | 57cff4b8ae75a2bbca86f5e3123cb890b629944e (patch) | |
tree | 8e85787d090899aed34a4b5e40b53995edb24a87 /man/pandoc.1 | |
parent | 15708f0b0f04fa32ce4b4296e25a120f5f533e0d (diff) | |
download | pandoc-57cff4b8ae75a2bbca86f5e3123cb890b629944e.tar.gz |
Class: Functions for dealing with PureState
There are two states in PandocPure, but it is only easy to deal with
CommonState. In the past, to do state monad operations on
PureState (the state specific to PandocPure) you had to add (lift
. lift) to the monadic operation and then rewrap in the newtype. This
adds four functions ({get,gets,put,modify}PureState) corresponding to
normal state monad operations. This allows the user to modify
PureState in PandocPure without worrying about where it sits in the
monad stack or rewrapping the newtype.
Diffstat (limited to 'man/pandoc.1')
0 files changed, 0 insertions, 0 deletions