@hackage hslua-cli1.0.0
Command-line interface for Lua
Installation
Tested Compilers
Dependencies (6)
- base >=4.9.1 && <5
- bytestring
- hslua-core >=2.1 && <2.3
- hslua-marshalling >=2.1 && <2.3
- lua >=2.1 && <2.3
- text >=1.2 && <2.1 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