@hackage hslua-module-text1.2.0
Lua module for text
Installation
Dependencies (5)
- 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 Show all…
Dependents (3)
@hackage/hslua, @hackage/pandoc, @hackage/pandoc-lua-engine
hslua-module-text
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.