hslua-cli-1.0.0: Command-line interface for Lua
CopyrightCopyright © 2017-2022 Albert Krewinkel
LicenseMIT
MaintainerAlbert Krewinkel <albert@hslua.org>
Safe HaskellSafe-Inferred
LanguageHaskell2010

HsLua.CLI

Description

Embeddable Lua interpreter interface.

Synopsis

Run scripts as program

runStandalone :: LuaError e => Settings e -> IO () Source #

Uses the first command line argument as the name of a script file and tries to run that script in Lua. Falls back to stdin if no file is given. Any remaining args are passed to Lua via the global table arg.

data Settings e Source #

Settings for the Lua command line interface.

Constructors

Settings 

Fields