-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/

-- | Lua module to work with version specifiers.
--   
--   Wrapper for the Data.Version.Version Haskell type.
@package hslua-module-version
@version 1.2.0.1

-- | Lua module to work with version specifiers.
module HsLua.Module.Version

-- | The path module specification.
documentedModule :: LuaError e => Module e

-- | Type definition of Lua Version values.
typeVersion :: LuaError e => DocumentedTypeWithList e Version Int

-- | Retrieve a Version object from the top of the stack.
peekVersion :: LuaError e => Peeker e Version

-- | Push a Version element to the Lua stack.
pushVersion :: LuaError e => Pusher e Version

-- | 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.
peekVersionFuzzy :: LuaError e => Peeker e Version
