HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulehslua-typing-0.1.1Haskell2010

HsLua.Typing

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

  • 2 types
  • 21 values
datadata TypeSpec
#

Type specification for Lua values.

Constructors

Instances6Eq, Ord, Show, IsString, Generic, Rep
datadata TypeDocs
#

Documented custom type.

Instances5Eq, Ord, Show, 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

4 declarations