module Data.Text.ParagraphLayout.Internal.Span (Span(..))
where
-- | A paragraph is broken into spans by the caller.
--
-- Each span could have a different font family, size, style, text decoration,
-- colour, language, etc.
data Span = Span
-- TODO: Add all relevant attributes.
    { spanLength :: Int
    -- ^ Byte offset to the next span or the end of the paragraph text.
    , spanLanguage :: String
    -- ^ Used for selecting the appropriate glyphs and line breaking rules.
    }
    deriving (Eq, Read, Show)