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-module-doclayout-1.2.1.1Haskell2010

HsLua.Module.DocLayout

Provides a Lua module which wraps Text.DocLayout. The Doc type is specialized to Text.

This module defines orphan instances for Doc Text.

  • 47 values

Module

6 declarations

Doc constructors and combinators

26 declarations

Uses the specified string as a prefix for every line of the inside document (except the first, if not at the beginning of the line).

valuevfill :: LuaError e => DocumentedFunction e
#

An expandable border that, when placed next to a box, expands to the height of the box. Strings cycle through the list provided.

Rendering

1 declaration
valuerender :: LuaError e => DocumentedFunction e
#

Render a Doc. The text is reflowed on breakable spaces to match the given line length. Text is not reflowed if the line length parameter is omitted or nil.

Document Querying

6 declarations

Returns the real length of a string in a monospace font: 0 for a combining character, 1, for a regular character, 2 for an East Asian wide character.

Styling

6 declarations

Marshaling

2 declarations

Orphan instances

2 instances