Skip to content

Commit 2941a35

Browse files
committed
Add methods to type Doc
Functions that take a `Doc` as their first argument are added as methods for convenience.
1 parent 23a1a99 commit 2941a35

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

src/HsLua/Module/DocLayout.hs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,23 @@ typeDoc = deftype "Doc"
205205
<#> docParam "doc"
206206
=#> textResult "Rendered Doc without reflowing."
207207
]
208-
[]
208+
[ method before_non_blank
209+
, method braces
210+
, method brackets
211+
, method chomp
212+
, method double_quotes
213+
, method is_empty
214+
, method flush
215+
, method height
216+
, method min_offset
217+
, method nestle
218+
, method nowrap
219+
, method offset
220+
, method parens
221+
, method quotes
222+
, method update_column
223+
, method vfill
224+
]
209225
where
210226
binaryOp op descr = lambda
211227
### liftPure2 op

0 commit comments

Comments
 (0)