Skip to content

Commit

Permalink
More fixes to trypandoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed May 28, 2015
1 parent 38c02f6 commit d9e5d9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trypandoc/trypandoc.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import Network.HTTP.Types.Status (status200)
import Network.HTTP.Types.Header (hContentType)
import Network.HTTP.Types.URI (queryToQueryText)
import Text.Pandoc
import Text.Pandoc.Error (PandocError)
import Text.Pandoc.Shared (tabFilter)
import Text.Highlighting.Kate (pygments)
import Data.Aeson
Expand Down Expand Up @@ -57,7 +58,7 @@ readerOpts :: ReaderOptions
readerOpts = def { readerParseRaw = True,
readerSmart = True }

fromFormats :: [(Text, String -> Pandoc)]
fromFormats :: [(Text, String -> Either PandocError Pandoc)]
fromFormats = [
("native" , readNative)
,("json" , Text.Pandoc.readJSON readerOpts)
Expand Down

0 comments on commit d9e5d9f

Please sign in to comment.