MIT licensed by Albert Krewinkel

Module documentation for 0.2.1

This version can be pinned in stack with:hslua-module-system-0.2.1@sha256:7c498e51df885be5fd9abe9b762372ff4f125002824d8e11a7d5832154a7a1c3,2216

Provides access to system information and functionality to Lua scripts via Haskell's System module.

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.


Revision history for hslua-module-system

0.2.1 – 2019-05-04

  • Use module helpers made available with HsLua 1.0.3. This avoids code duplication when used with other hslua modules.

0.2.0 – 2019-05-01

All fields and functions are now exported from the Haskell module under the same name as that used in Lua.

New fields

  • arch: processor architecture.
  • compiler_name: Haskell compiler that was used to compile the module.
  • compiler_version: version of the compiler.
  • os: operating system.

New functions

  • mkdir: create a new directory.
  • rmdir: remove a directory.
  • with_env: perform action with custom environment.
  • with_wd: perform action in another directory.

Removed or renamed functions

  • currentdir was renamed to getwd.
  • chdir was renamed to setwd.
  • pwd was removed.


  • Fix typos and copy-paste errors in docs, tests.

0.1.0 – 2019-04-26

  • First version. Released on an unsuspecting world.
Used by 1 package in nightly-2020-03-17(full list with versions):