module Data.Text.ParagraphLayout.Internal.ResolvedBox (ResolvedBox (..)) where import Data.Text.Glyphize (Direction) import Data.Text.ParagraphLayout.Internal.BoxOptions -- | Internal structure describing an inline box. -- May be shared by multiple fragments. data ResolvedBox d = ResolvedBox { boxUserData :: d , boxIndex :: Int , boxOptions :: BoxOptions , boxDirection :: Direction } instance Eq (ResolvedBox d) where a == b = boxIndex a == boxIndex b