HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

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.

Contents
  1. Module
  2. Doc constructors and combinators
  3. Rendering
  4. Document Querying
  5. Styling
  6. Marshaling
Synopsis

Module

Doc constructors and combinators

Rendering

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

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

Marshaling

Orphan instances

2 instances