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-typing-0.2.0Haskell2010

HsLua.Typing

The module provides Haskell types and values that can be used to describe and declare the types of Lua values.

  • 1 type
  • 19 values
datadata TypeSpec
#

Type specification for Lua values.

Constructors

Instances6Eq, Ord, Show, IsString, Generic, Rep
value(#|#) :: TypeSpec -> TypeSpec -> TypeSpec
#

Returns the sum of two type specifiers, declaring that a Lua value can have either type.

Creates a TypeSpec value from a string.

The implementation currently handles basic types, sequences, and alternatives. A string that cannot be parsed is returned as a Named type with the full string as the name.

Types

2 declarations

Built-in types

Type constructors

Marshalling

2 declarations