hslua-repl: Isocline-based Lua REPL

[ foreign, library, mit ] [ Propose Tags ]

An embeddable Lua REPL built with Isocline and HsLua.

[Skip to Readme]


[Index] [Quick Jump]


Automatic Flags

Compile luarepl standalone executable.


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS] 0.1.0, 0.1.1, 0.1.2
Change log CHANGELOG.md
Dependencies base (>=4.11 && <5), bytestring (>=0.10 && <0.13), hslua-core (>=2.3.1 && <2.4), hslua-repl, isocline (>=1.0 && <1.1), lua (>=2.3 && <2.4), text (>=1.2 && <2.2) [details]
License MIT
Copyright © 2023-2024 Albert Krewinkel
Author Albert Krewinkel
Maintainer Albert Krewinkel <tarleb@hslua.org>
Category Foreign
Home page https://hslua.org/
Bug tracker https://github.com/hslua/hslua/issues
Source repo head: git clone https://github.com/hslua/hslua(hslua-repl)
Uploaded by tarleb at 2024-01-18T17:28:03Z
Distributions Arch:0.1.2, Fedora:0.1.1, LTSHaskell:0.1.2, NixOS:0.1.1, Stackage:0.1.2, openSUSE:0.1.2
Reverse Dependencies 2 direct, 1 indirect [details]
Executables luarepl
Downloads 1302 total (227 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2024-01-18 [all 1 reports]

Readme for hslua-repl-0.1.2

[back to package description]


An embeddable, isocline-based Lua REPL.


{-# 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