hslua-repl

Isocline-based Lua REPL

https://hslua.org/

Version on this page:0.1.1
LTS Haskell 22.21:0.1.2
Stackage Nightly 2024-05-06:0.1.2
Latest on Hackage:0.1.2

See all snapshots hslua-repl appears in

MIT licensed by Albert Krewinkel
Maintained by Albert Krewinkel
This version can be pinned in stack with:hslua-repl-0.1.1@sha256:fc88c009353e7f248cf6553c75e55ee116ce2374f219c760e056be6ae4185cab,2603

Module documentation for 0.1.1

Used by 2 packages in nightly-2023-09-18(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.0

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.