autolib-todoc
Safe HaskellNone
LanguageHaskell98

Autolib.ToDoc.Dutch

Synopsis

Documentation

dutch Source #

Arguments

:: (Doc, Doc, Doc)

( opening, separator, closing )

-> [Doc]

input

-> Doc 

output sequences in "dutch style" i. e. wrapped lines start (instead of end) with separators.

flowing_dutch :: (Type Doc, Doc, Type Doc) -> [Doc] -> Type Doc Source #

Make dutch-style group. If we are right of current-indentation, then start a new line, and indent. See discussion at https://git.imn.htwk-leipzig.de/autotool/all0/-/issues/960

sepBy :: Doc -> [Doc] -> Doc Source #

(</>) :: Doc -> Doc -> Doc Source #

put l atop indented r, unless l is very short (one letter), then put r right of it.