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

-- | A library for word-wrapping
--   
--   A library for wrapping long lines of text.
@package word-wrap
@version 0.4.1

module Text.Wrap

-- | Settings to control how wrapping is performed.
data WrapSettings
WrapSettings :: Bool -> Bool -> WrapSettings

-- | Whether to indent new lines created by wrapping when their original
--   line was indented.
[preserveIndentation] :: WrapSettings -> Bool

-- | Whether to break in the middle of the first word on a line when that
--   word exceeds the wrapping width.
[breakLongWords] :: WrapSettings -> Bool
defaultWrapSettings :: WrapSettings

-- | Wrap text at the specified width. Newlines and whitespace in the input
--   text are preserved. Returns the lines of text in wrapped form. New
--   lines introduced due to wrapping will have leading whitespace
--   stripped.
wrapTextToLines :: WrapSettings -> Int -> Text -> [Text]

-- | Like wrapTextToLines, but returns the wrapped text
--   reconstructed with newlines inserted at wrap points.
wrapText :: WrapSettings -> Int -> Text -> Text
instance GHC.Show.Show Text.Wrap.Token
instance GHC.Read.Read Text.Wrap.WrapSettings
instance GHC.Show.Show Text.Wrap.WrapSettings
instance GHC.Classes.Eq Text.Wrap.WrapSettings
