HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

Modulehslua-module-version-1.2.0.1Haskell2010

HsLua.Module.Version

Lua module to work with version specifiers.

Contents
  1. Module
  2. Version objects
Synopsis

Module

Version objects

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.