@@ -355,9 +355,9 @@ brackets = defun "brackets"
355355-- | Like @'lblock'@ but aligned centered.
356356cblock :: LuaError e => DocumentedFunction e
357357cblock = defun " cblock"
358- ### liftPure2 Doc. cblock
359- <#> parameter peekIntegral " integer" " width" " block width in chars"
358+ ### liftPure2 (flip Doc. cblock)
360359 <#> docParam " doc"
360+ <#> parameter peekIntegral " integer" " width" " block width in chars"
361361 =#> docResult (" doc, aligned centered in a block with max" <>
362362 " `width` chars per line." )
363363 #? (" Creates a block with the given width and content, " <>
@@ -377,7 +377,7 @@ concat = defun "concat"
377377 ### liftPure2 (\ docs optSep -> mconcat $
378378 maybe docs (`intersperse` docs) optSep)
379379 <#> parameter (peekList peekDoc) " `{Doc,...}`" " docs" " list of Docs"
380- <#> opt (parameter peekDoc " Doc" " sep" " separator" )
380+ <#> opt (parameter peekDoc " Doc" " sep" " separator (default: none) " )
381381 =#> docResult " concatenated doc"
382382 #? " Concatenates a list of `Doc`s."
383383
@@ -400,31 +400,31 @@ flush = defun "flush"
400400-- | Creates a hanging indent.
401401hang :: LuaError e => DocumentedFunction e
402402hang = defun " hang"
403- ### liftPure3 Doc. hang
403+ ### liftPure3 (\ doc ind start -> Doc. hang ind start doc)
404+ <#> docParam " doc"
404405 <#> parameter peekIntegral " integer" " ind" " indentation width"
405406 <#> docParam " start"
406- <#> docParam " doc"
407407 =#> docResult (" `doc` prefixed by `start` on the first line, " <>
408408 " subsequent lines indented by `ind` spaces." )
409409 #? " Creates a hanging indent."
410410
411411-- | Encloses a @'Doc'@ inside a start and end @'Doc'@.
412412inside :: LuaError e => DocumentedFunction e
413413inside = defun " inside"
414- ### liftPure3 Doc. inside
414+ ### liftPure3 (\ contents start end -> Doc. inside start end contents)
415+ <#> docParam " contents"
415416 <#> docParam " start"
416417 <#> docParam " end"
417- <#> docParam " contents"
418418 =#> docResult " enclosed contents"
419419 #? " Encloses a `Doc` inside a start and end `Doc`."
420420
421421-- | Creates a block with the given width and content, aligned to
422422-- the left.
423423lblock :: LuaError e => DocumentedFunction e
424424lblock = defun " lblock"
425- ### liftPure2 Doc. lblock
426- <#> parameter peekIntegral " integer" " width" " block width in chars"
425+ ### liftPure2 (flip Doc. lblock)
427426 <#> docParam " doc"
427+ <#> parameter peekIntegral " integer" " width" " block width in chars"
428428 =#> docResult " doc put into block with max `width` chars per line."
429429 #? (" Creates a block with the given width and content, " <>
430430 " aligned to the left." )
@@ -440,9 +440,9 @@ literal = defun "literal"
440440-- | Indents a @'Doc'@ by the specified number of spaces.
441441nest :: LuaError e => DocumentedFunction e
442442nest = defun " nest"
443- ### liftPure2 Doc. nest
444- <#> parameter peekIntegral " integer" " ind" " indentation size"
443+ ### liftPure2 (flip Doc. nest)
445444 <#> docParam " doc"
445+ <#> parameter peekIntegral " integer" " ind" " indentation size"
446446 =#> docResult " `doc` indented by `ind` spaces"
447447 #? " Indents a `Doc` by the specified number of spaces."
448448
@@ -476,9 +476,9 @@ parens = defun "parens"
476476-- the line).
477477prefixed :: LuaError e => DocumentedFunction e
478478prefixed = defun " prefixed"
479- ### liftPure2 Doc. prefixed
480- <#> parameter peekString " string" " prefix" " prefix for each line"
479+ ### liftPure2 (flip Doc. prefixed)
481480 <#> docParam " doc"
481+ <#> parameter peekString " string" " prefix" " prefix for each line"
482482 =#> docResult " prefixed `doc`"
483483 #? (" Uses the specified string as a prefix for every line of " <>
484484 " the inside document (except the first, if not at the " <>
@@ -495,9 +495,9 @@ quotes = defun "quotes"
495495-- | Like @'rblock'@ but aligned to the right.
496496rblock :: LuaError e => DocumentedFunction e
497497rblock = defun " rblock"
498- ### liftPure2 Doc. rblock
499- <#> parameter peekIntegral " integer" " width" " block width in chars"
498+ ### liftPure2 (flip Doc. rblock)
500499 <#> docParam " doc"
500+ <#> parameter peekIntegral " integer" " width" " block width in chars"
501501 =#> docResult (" doc, right aligned in a block with max" <>
502502 " `width` chars per line." )
503503 #? (" Creates a block with the given width and content, " <>
0 commit comments