~jaro/balkon

ab656a2899d3cade7899b8ef905e5caafc085ee4 — Jaro 1 year, 7 months ago b70211f
Deprecate the Plain interface.
M CHANGELOG.md => CHANGELOG.md +2 -2
@@ 7,8 7,8 @@
    * Supports multiple fonts in the same paragraph. Where line height varies,
      text will be aligned by its top edge.

* Separated plain text layout interface into `Data.Text.ParagraphLayout.Plain`
  submodule, in anticipation of a rich text interface.
* Moved existing plain text interface into `Data.Text.ParagraphLayout.Plain`
  submodule and marked it as deprecated.

* Input text spans can now have arbitrary user data attached to them.
  All related data types (`Paragraph`, `Span`, `Fragment`, `SpanLayout`,

M lib/Data/Text/ParagraphLayout/Plain.hs => lib/Data/Text/ParagraphLayout/Plain.hs +2 -1
@@ 1,8 1,9 @@
-- | Interface for laying out paragraphs of plain text.
-- | Legacy interface for laying out paragraphs of plain text.
--
-- This interface only allows one font with a fixed line height to be used for
-- the entire paragraph. As a consequence, all lines will have the same height.
module Data.Text.ParagraphLayout.Plain
{-# DEPRECATED "Use \"Data.Text.ParagraphLayout.Rich\" instead." #-}
    -- * Input paragraph
    ( Paragraph (Paragraph)
    , LineHeight (Absolute, Normal)

M test/Data/Text/ParagraphLayout/Plain/ParagraphData.hs => test/Data/Text/ParagraphLayout/Plain/ParagraphData.hs +1 -0
@@ 1,3 1,4 @@
{-# OPTIONS_GHC -fno-warn-deprecations #-}
module Data.Text.ParagraphLayout.Plain.ParagraphData
    ( arabicFillerParagraph
    , czechHelloParagraph

M test/Data/Text/ParagraphLayout/PlainSpec.hs => test/Data/Text/ParagraphLayout/PlainSpec.hs +1 -0
@@ 1,3 1,4 @@
{-# OPTIONS_GHC -fno-warn-deprecations #-}
module Data.Text.ParagraphLayout.PlainSpec (spec) where

import Test.Hspec

M test/Data/Text/ParagraphLayout/PrettyShow.hs => test/Data/Text/ParagraphLayout/PrettyShow.hs +1 -0
@@ 1,3 1,4 @@
{-# OPTIONS_GHC -fno-warn-deprecations #-}
module Data.Text.ParagraphLayout.PrettyShow
    ( PrettyShow
    , prettyShow