@hackage hslua-repl0.1.2
Isocline-based Lua REPL
Categories
License
MIT
Maintainer
Albert Krewinkel <tarleb@hslua.org>
Links
Versions
Installation
Tested Compilers
Dependencies (6)
- base >=4.9.1 && <5
- bytestring >=0.10 && <0.13
- hslua-core >=2.3.1 && <2.4
- isocline >=1.0 && <1.1
- lua >=2.3 && <2.4
- text >=1.2 && <2.2 Show all…
Dependents (2)
@hackage/hslua-cli, @hackage/pandoc-lua-engine
Package Flags
executable
(off by default)
Compile luarepl standalone executable.
hslua-repl
An embeddable, isocline-based Lua REPL.
Example
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeApplications #-}
import HsLua.Core as Lua (Exception, openlibs, run)
import HsLua.REPL (defaultREPLConfig, startREPL)
-- | Run a default Lua interpreter.
main :: IO ()
main = run @Lua.Exception $ do
startREPL defaultREPLConfig