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

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 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