HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulehslua-module-version-1.1.1Haskell2010

HsLua.Module.Version

Lua module to work with file paths.

  • 5 values

Module

1 declaration

Version objects

4 declarations

Retrieve a Version-like object from the top of the stack.

This function uses these heuristics, depending on the Lua object type.

  • string: object is parsed as a version specifier.

  • table: value is expected to be a list of integers, with each index specifying a version branch.

  • userdata: assumes the value to be a Version userdata object.

  • number: parses the number as an integer value.

Otherwise, or if the object fails to meet an expectation, peeking fails.