Write the contents of a document tree into an output stream (file or stdout).
If textMode is set, writing is done with Haskell string output, else (default) writing is done with lazy ByteString output
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27
Modulehxt-9.3.1.22Haskell2010
State arrows for document output
Write the contents of a document tree into an output stream (file or stdout).
If textMode is set, writing is done with Haskell string output, else (default) writing is done with lazy ByteString output
write the tree representation of a document to a file
write a document with indentaion and line numers