module Data.Text.ParagraphLayout.Span (Span(..)) where import Data.Text.Glyphize (Font) import Data.Text.Lazy (Text) type Language = String -- Paragraph is broken into spans by the caller. -- -- Each span could have a different font family, size, style, text decoration, -- colour, language, etc. -- -- TODO: Add all relevant attributes. -- data Span = Span { spanText :: Text , spanFont :: Font , spanLanguage :: Maybe Language } deriving (Eq, Show)