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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 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.