mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 17:20:47 +08:00
pandoc-cli: update to hslua-cli-1.2
This commit is contained in:
committed by
John MacFarlane
parent
2bad9a9aa4
commit
a3fd6c674d
@@ -59,7 +59,7 @@ executable pandoc
|
||||
main-is: pandoc.hs
|
||||
buildable: True
|
||||
build-depends: pandoc,
|
||||
hslua-cli >= 1.1 && < 1.2
|
||||
hslua-cli >= 1.2 && < 1.3
|
||||
other-modules: PandocCLI.Server
|
||||
if flag(server)
|
||||
build-depends: pandoc-server >= 0.1 && < 0.2,
|
||||
|
||||
@@ -39,9 +39,11 @@ main = E.handle (handleError . Left) $ do
|
||||
-- | Runs pandoc as a Lua interpreter that is (mostly) compatible with
|
||||
-- the default @lua@ program shipping with Lua.
|
||||
runLuaInterpreter :: String -> [String] -> IO ()
|
||||
runLuaInterpreter _progName _args = do
|
||||
runLuaInterpreter progName args = do
|
||||
let settings = Settings
|
||||
{ settingsVersionInfo = "\nEmbedded in pandoc " <> pandocVersion
|
||||
, settingsRunner = handleError <=< runIOorExplode . runLua
|
||||
, settingsRunner = runner
|
||||
}
|
||||
runStandalone settings
|
||||
runStandalone settings progName args
|
||||
where
|
||||
runner _envBehavior = handleError <=< runIOorExplode . runLua
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ extra-deps:
|
||||
- skylighting-format-latex-0.1
|
||||
- hslua-2.2.1
|
||||
- hslua-aeson-2.2.1
|
||||
- hslua-cli-1.1.0
|
||||
- hslua-cli-1.2.0
|
||||
- hslua-classes-2.2.0
|
||||
- hslua-core-2.2.1
|
||||
- hslua-marshalling-2.2.1
|
||||
|
||||
Reference in New Issue
Block a user