From bf8689d2214eb2b4046103fe8dae2d11bb212c04 Mon Sep 17 00:00:00 2001 From: Adrian Cochrane Date: Wed, 12 Apr 2023 15:20:33 +1200 Subject: [PATCH] Add descriptions of CSS property-parsing submodules. --- Graphics/Layout/CSS/Font.hs | 1 + Graphics/Layout/CSS/Length.hs | 2 ++ Graphics/Layout/Grid/CSS.hs | 1 + Graphics/Layout/Inline/CSS.hs | 1 + 4 files changed, 5 insertions(+) diff --git a/Graphics/Layout/CSS/Font.hs b/Graphics/Layout/CSS/Font.hs index c2de2c3..1806ddf 100644 --- a/Graphics/Layout/CSS/Font.hs +++ b/Graphics/Layout/CSS/Font.hs @@ -1,4 +1,5 @@ {-# LANGUAGE OverloadedStrings #-} +-- | Infrastructure for parsing & desugaring CSS properties related to fonts. module Graphics.Layout.CSS.Font(Font'(..), placeholderFont, hbScale, hbUnit, pattern2hbfont, pattern2font, CSSFont(..), variations') where diff --git a/Graphics/Layout/CSS/Length.hs b/Graphics/Layout/CSS/Length.hs index 2fa0e40..ec4cda3 100644 --- a/Graphics/Layout/CSS/Length.hs +++ b/Graphics/Layout/CSS/Length.hs @@ -1,4 +1,6 @@ {-# LANGUAGE OverloadedStrings #-} +-- | Infrastructure for parsing & desugaring length units & keywords, +-- in reference to the selected font. module Graphics.Layout.CSS.Length(Unitted, auto, parseLength, parseLength', n2f, finalizeLength, px2pt, Font'(..)) where diff --git a/Graphics/Layout/Grid/CSS.hs b/Graphics/Layout/Grid/CSS.hs index af19394..8893769 100644 --- a/Graphics/Layout/Grid/CSS.hs +++ b/Graphics/Layout/Grid/CSS.hs @@ -1,4 +1,5 @@ {-# LANGUAGE OverloadedStrings #-} +-- | Infrastructure for parsing & desugaring grid-layout related CSS properties. module Graphics.Layout.Grid.CSS(CSSGrid(..), Axis(..), CSSCell(..), Placement(..), finalizeGrid) where import Stylist (PropertyParser(..)) diff --git a/Graphics/Layout/Inline/CSS.hs b/Graphics/Layout/Inline/CSS.hs index d099665..175fd1a 100644 --- a/Graphics/Layout/Inline/CSS.hs +++ b/Graphics/Layout/Inline/CSS.hs @@ -1,4 +1,5 @@ {-# LANGUAGE OverloadedStrings #-} +-- | Infrastructure for parsing & desugaring text related CSS properties. module Graphics.Layout.Inline.CSS(CSSInline(..), ParagraphBuilder(..), buildParagraph, concatParagraph, finalizeParagraph) where -- 2.30.2