HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Modulehslua-module-version-1.2.0.1Haskell2010

HsLua.Module.Version

Lua module to work with version specifiers.

  • 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.