-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Lua module wrapping Text.DocLayout.
--   
--   Lua module wrapping <tt>Text.DocLayout</tt>.
@package hslua-module-doclayout
@version 1.1.0


-- | Provides a Lua module which wraps <tt><a>DocLayout</a></tt>. The
--   <tt>Doc' type is specialized to </tt><a>Text</a>@.
--   
--   This module defines orphan instances for <tt>Doc Text</tt>.
module HsLua.Module.DocLayout

-- | Self-documenting module.
documentedModule :: LuaError e => Module e
pushModule :: LuaError e => Module e -> LuaE e ()
preloadModule :: LuaError e => Module e -> LuaE e ()

-- | Textual description of the "doclayout" module.
description :: Text

-- | Exposed fields.
fields :: forall e. LuaError e => [Field e]

-- | Exposed module functions.
functions :: LuaError e => [DocumentedFunction e]

-- | Creates a <tt><a>Doc</a></tt> which is conditionally included only if
--   it comes at the beginning of a line.
after_break :: LuaError e => DocumentedFunction e

-- | Conditionally includes the given <tt><a>Doc</a></tt> unless it is
--   followed by a blank space.
before_non_blank :: LuaError e => DocumentedFunction e

-- | Wrapped and documented <a>blankline</a> value.
blankline :: forall e. LuaError e => Field e

-- | Insert blank lines unless they exist already.
blanklines :: LuaError e => DocumentedFunction e

-- | Puts a <tt><a>Doc</a></tt> in curly braces.
braces :: LuaError e => DocumentedFunction e

-- | Puts a <tt><a>Doc</a></tt> in square brackets.
brackets :: LuaError e => DocumentedFunction e

-- | Like <tt><a>lblock</a></tt> but aligned centered.
cblock :: LuaError e => DocumentedFunction e

-- | Chomps trailing blank space off of a <tt><a>Doc</a></tt>.
chomp :: LuaError e => DocumentedFunction e

-- | Concatenates a list of <tt><a>Doc</a></tt>s.
concat :: LuaError e => DocumentedFunction e

-- | Wrapped and documented <a>cr</a> value.
cr :: forall e. LuaError e => Field e

-- | Wraps a <tt><a>Doc</a></tt> in double quotes
double_quotes :: LuaError e => DocumentedFunction e

-- | Wrapped and documented <a>empty</a> value.
empty :: forall e. LuaError e => Field e

-- | Makes a <tt><a>Doc</a></tt> flush against the left margin.
flush :: LuaError e => DocumentedFunction e

-- | Creates a hanging indent.
hang :: LuaError e => DocumentedFunction e

-- | Encloses a <tt><a>Doc</a></tt> inside a start and end
--   <tt><a>Doc</a></tt>.
inside :: LuaError e => DocumentedFunction e

-- | Creates a block with the given width and content, aligned to the left.
lblock :: LuaError e => DocumentedFunction e

-- | Creates a <tt><a>Doc</a></tt> from a string.
literal :: LuaError e => DocumentedFunction e

-- | Indents a <tt><a>Doc</a></tt> by the specified number of spaces.
nest :: LuaError e => DocumentedFunction e

-- | Removes leading blank lines from a <tt><a>Doc</a></tt>.
nestle :: LuaError e => DocumentedFunction e

-- | Makes a <tt><a>Doc</a></tt> non-reflowable.
nowrap :: LuaError e => DocumentedFunction e

-- | Puts a <tt><a>Doc</a></tt> in parentheses.
parens :: LuaError e => DocumentedFunction e

-- | Uses the specified string as a prefix for every line of the inside
--   document (except the first, if not at the beginning of the line).
prefixed :: LuaError e => DocumentedFunction e

-- | Wraps a <tt><a>Doc</a></tt> in single quotes.
quotes :: LuaError e => DocumentedFunction e

-- | Like <tt><a>rblock</a></tt> but aligned to the right.
rblock :: LuaError e => DocumentedFunction e

-- | Wrapped and documented <a>space</a> value.
space :: forall e. LuaError e => Field e

-- | An expandable border that, when placed next to a box, expands to the
--   height of the box. Strings cycle through the list provided.
vfill :: LuaError e => DocumentedFunction e

-- | Render a <tt><a>Doc</a></tt>. The text is reflowed on breakable spaces
--   to match the given line length. Text is not reflowed if the line
--   length parameter is omitted or nil.
render :: LuaError e => DocumentedFunction e

-- | <tt>True</tt> iff the document is empty.
is_empty :: LuaError e => DocumentedFunction e

-- | Returns the height of a block or other Doc.
height :: LuaError e => DocumentedFunction e

-- | Returns the minimal width of a <tt><a>Doc</a></tt> when reflowed at
--   breakable spaces.
min_offset :: LuaError e => DocumentedFunction e

-- | Returns the width of a <tt><a>Doc</a></tt>.
offset :: LuaError e => DocumentedFunction e

-- | Returns the real length of a string in a monospace font: 0 for a
--   combining character, 1, for a regular character, 2 for an East Asian
--   wide character.
real_length :: DocumentedFunction e

-- | Returns the column that would be occupied by the last laid out
--   character.
update_column :: LuaError e => DocumentedFunction e

-- | Retrieve a <tt>Doc Text</tt> value from the Lua stack. Strings are
--   converted to plain <tt><a>Doc</a></tt> values.
peekDoc :: LuaError e => Peeker e (Doc Text)

-- | Push a <tt>Doc Text</tt> value to the Lua stack.
pushDoc :: LuaError e => Pusher e (Doc Text)
instance HsLua.Class.Peekable.Peekable (Text.DocLayout.Doc Data.Text.Internal.Text)
instance HsLua.Class.Pushable.Pushable (Text.DocLayout.Doc Data.Text.Internal.Text)
