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-module-doclayout-1.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.

  • 41 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.

Marshaling

2 declarations

Orphan instances

2 instances