Description
Isocline-based Lua REPL.
Description
An embeddable Lua REPL built with Isocline and HsLua.
README.md
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