From 9882655af0f3c376271f16e5ea1dcec62ed275f9 Mon Sep 17 00:00:00 2001 From: Jaro Date: Wed, 12 Apr 2023 12:27:01 +0200 Subject: [PATCH] Fix documentation: references to non-imported names. --- src/Data/Text/ParagraphLayout/Internal/Fragment.hs | 6 +++--- src/Data/Text/ParagraphLayout/Internal/Zipper.hs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Data/Text/ParagraphLayout/Internal/Fragment.hs b/src/Data/Text/ParagraphLayout/Internal/Fragment.hs index 2fbf90a..0d7956d 100644 --- a/src/Data/Text/ParagraphLayout/Internal/Fragment.hs +++ b/src/Data/Text/ParagraphLayout/Internal/Fragment.hs @@ -35,9 +35,9 @@ data Fragment = Fragment , fragmentPen :: (Int32, Int32) -- ^ Coordinates of the initial pen position, from which the first glyph - -- should be drawn, relative to the origin of the `fragmentRect`. - -- Each glyph's `x_advance` or `y_advance` are then used to move the pen - -- position for the next glyph. + -- should be drawn, relative to the origin of the `fragmentRect`. Each + -- glyph's `Data.Text.Glyphize.x_advance` or `Data.Text.Glyphize.y_advance` + -- are then used to move the pen position for the next glyph. , fragmentGlyphs :: [(GlyphInfo, GlyphPos)] -- ^ Glyphs contained in the fragment, as returned from HarfBuzz. diff --git a/src/Data/Text/ParagraphLayout/Internal/Zipper.hs b/src/Data/Text/ParagraphLayout/Internal/Zipper.hs index 74ca6aa..83b6930 100644 --- a/src/Data/Text/ParagraphLayout/Internal/Zipper.hs +++ b/src/Data/Text/ParagraphLayout/Internal/Zipper.hs @@ -92,8 +92,8 @@ measureI8 n t = -- | /O(1)/ Unsafe recombination of two `Text`s. -- --- Requires that both `Text`s are based on the same `Array` and adjacent to --- each other. +-- Requires that both `Text`s are based on the same `Data.Text.Array` +-- and adjacent to each other. recombine' :: Text -> Text -> Text recombine' (Text _ _ 0) t = t recombine' t (Text _ _ 0) = t -- 2.30.2