HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulebasement-0.0.16Haskell2010

Basement.Block.Builder

Block builder

  • 1 type
  • 6 values
  • Packagebasement-0.0.16
  • Exports7
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceBuilder.hs

Emit functions

4 declarations
valueemitUTF8Char :: Char -> Builder
#

emit a UTF8 char in the builder

this function may be replaced by `emit :: Encoding -> Char -> Builder`

unsafe

1 declaration
valueunsafeRunString :: PrimMonad prim => Builder -> prim String
#

run the given builder and return a UTF8String

this action is unsafe as there is no guarantee upon the validity of the content of the built block.