hslua-module-text: Lua module for text

[ foreign, library, mit ] [ Propose Tags ] [ Report a vulnerability ]

UTF-8 aware subset of Lua's string module.

This package is part of HsLua, a Haskell framework built around the embeddable scripting language Lua.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1, 0.1.1, 0.1.2, 0.1.2.1, 0.2.0, 0.2.1, 0.3.0, 0.3.0.1, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.3.1, 1.1.0, 1.1.0.1, 1.1.1, 1.2.0
Change log CHANGELOG.md
Dependencies base (>=4.11 && <5), hslua-core (>=2.3 && <2.4), hslua-marshalling (>=2.1 && <2.4), hslua-packaging (>=2.3 && <2.5), text (>=1.2 && <2.2) [details]
Tested with ghc ==9.6, ghc ==9.8, ghc ==9.10, ghc ==9.12
License MIT
Copyright © 2017-2026 Albert Krewinkel
Author Albert Krewinkel
Maintainer tarleb@hslua.org
Category Foreign
Home page https://github.com/hslua/hslua
Bug tracker https://github.com/hslua/hslua/issues
Source repo head: git clone https://github.com/hslua/hslua.git(hslua-module-text)
Uploaded by tarleb at 2026-01-08T15:36:29Z
Distributions Arch:1.1.0.1, Debian:0.2.1, Fedora:1.1.1, LTSHaskell:1.1.1, NixOS:1.1.1, Stackage:1.1.1, openSUSE:1.1.1
Reverse Dependencies 2 direct, 169 indirect [details]
Downloads 41336 total (44 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2026-01-08 [all 1 reports]

Readme for hslua-module-text-1.2.0

[back to package description]

hslua-module-text

GitHub CI Hackage Stackage Lts Stackage Nightly MIT license

An UTF-8 aware subset of Lua's string module. The functions provided by this module are upper, lower, len, reverse, sub, and toencoding.

Intended usage for this package is to preload it by adding the loader function to package.preload. Note that the Lua package library must have already been loaded before the loader can be added.

Example

loadProg :: Lua Status
loadProg = do
  openlibs
  preloadModule documenteModule
  dostring $ "text = require 'text'\n"
          <> "print(text.upper 'hello')"

License

This package is licensed under the MIT license. See LICENSE for details.