diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-07-19 12:38:54 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-07-19 12:38:54 -0700 |
commit | 2351f7a112f7ebc612200ef3684cc3327dec8296 (patch) | |
tree | 379f395692b741bfb9733d3802990b8838b46271 /src/Text/Pandoc.hs | |
parent | 26748da6d4fc6912f1ef314fb01f9969d8a5fc59 (diff) |
Provide Data.Default instances for ParserState and WriterOptions.
Now you can use def (which is re-exported by Text.Pandoc) instead of
defaultParserState or defaultWriterOptions. For now, these
are still defined too, so existing code need not change.
Closes #546.
Diffstat (limited to 'src/Text/Pandoc.hs')
-rw-r--r-- | src/Text/Pandoc.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Text/Pandoc.hs b/src/Text/Pandoc.hs index 432a5c2ba..f3436cc7b 100644 --- a/src/Text/Pandoc.hs +++ b/src/Text/Pandoc.hs @@ -114,6 +114,8 @@ module Text.Pandoc , rtfEmbedImage , jsonFilter , ToJsonFilter(..) + -- * From Data.Default + , def ) where import Text.Pandoc.Definition @@ -149,6 +151,7 @@ import Text.Pandoc.Shared import Data.Version (showVersion) import Text.JSON.Generic import Paths_pandoc (version) +import Data.Default -- | Version number of pandoc library. pandocVersion :: String |