About

Metadata

  • Last updated , by tarleb
  • License MIT
  • Categories FFI
  • Maintained by: Albert Krewinkel <tarleb@hslua.org>

  • Lottery factor: 0

Links

Installation

Tested Compilers

  1. 9.8.1
  2. 9.6.3
  3. 9.4.8
  4. 9.2.8
  5. 9.0.2
  6. 8.10.7
  7. 8.8.4
  8. 8.6.5
  9. 8.4.4

Package Flags

Use the -f option with cabal commands to enable flags

    executable (off by default)

    Compile luarepl standalone executable.

Readme

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