summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-12-10 16:52:35 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-01-25 17:07:41 +0100
commit2e7b0c7edaac9fbba52ac3cbc6380dbfb74805cf (patch)
treea467c1c7312e488cf4626698f4de02c9a9ff4184 /src/Text/Pandoc.hs
parent6643e401eed85d1a1366b1d2193fb06e285c7448 (diff)
Added ReaderOptions parameter to readNative.
This makes it similar to the other readers -- even though ReaderOptions is essentially ignored, the uniformity is nice.
Diffstat (limited to 'src/Text/Pandoc.hs')
-rw-r--r--src/Text/Pandoc.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc.hs b/src/Text/Pandoc.hs
index 013a9d9ac..e5fc665a7 100644
--- a/src/Text/Pandoc.hs
+++ b/src/Text/Pandoc.hs
@@ -238,7 +238,7 @@ data Reader m = StringReader (ReaderOptions -> String -> m Pandoc)
-- | Association list of formats and readers.
readers :: PandocMonad m => [(String, Reader m)]
-readers = [ ("native" , StringReader $ \_ s -> readNative s)
+readers = [ ("native" , StringReader readNative)
,("json" , StringReader $ \o s ->
case readJSON o s of
Right doc -> return doc