MIT licensed by Albert Krewinkel
Maintained by Albert Krewinkel
This version can be pinned in stack with:hslua-repl-0.1.2@sha256:718781147963f02b4523e711f935fcae73895505d1b73e85ff17b5fb9cd3ad1a,2676

Module documentation for 0.1.2

Used by 2 packages in nightly-2024-12-23(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.