@hackage hslua-cli1.4.3
Command-line interface for Lua
Installation
Tested Compilers
Dependencies (8)
- base >=4.11 && <5
- bytestring
- hslua-core >=2.3 && <2.4
- hslua-marshalling >=2.2 && <2.4
- hslua-repl >=0.1 && <0.2
- lua >=2.3 && <2.4 Show all…
Dependents (2)
@hackage/hslua, @hackage/pandoc-cli
Package Flags
executable
(off by default)
Compile hslua standalone executable.
hslua-cli
Library that allows to embed a standalone Lua interpreter into a
larger program. The provided command-line interface is mostly
compatible with that of the default lua executable that ships
with Lua.
Example
import HsLua.Core as Lua (Exception, openlibs, run)
import HsLua.CLI (Settings (..), runStandalone)
-- | Run a default Lua interpreter.
main :: IO ()
main = do
let settings = Settings
{ settingsVersionInfo = "\nembedded in MyProgram"
, settingsRunner = \action -> run $ do
openlibs
action
}
runStandalone @Lua.Exception settings