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

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.