MIT licensed by Albert Krewinkel
Maintained by Albert Krewinkel
This version can be pinned in stack with:hslua-repl-0.1.2@sha256:08285ac7a597e0d42ead6825b635c31003690f3ec8a503ca19ac8da5ead8f2a7,2771

Module documentation for 0.1.2

Used by 2 packages in nightly-2026-11-14(full list with versions):

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

Changes

Changelog

hslua-repl uses PVP Versioning.

hslua-repl-0.1.2

Released 2024-01-18.

  • Relaxed upper bound for text and bytestring, allowing text-2.1 and bytestring-0.12.

hslua-repl-0.1.1

Released 2023-03-17.

  • Running the REPL in specific environments: the new replWithEnv function allows to load all inputs in an environment that’s specified by a Reference value.

hslua-repl-0.1.0

Released 2023-03-16.

  • A new package begins its way into the undiscovered land. May it live long and prosper.