packages feed

prettyprinter-lucid 0.1.0.1 → 0.2.0

raw patch · 3 files changed

+12/−6 lines, 3 filesdep ~basePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base

API changes (from Hackage documentation)

Files

+ CHANGELOG.md view
@@ -0,0 +1,3 @@+# 0.2.0++- Remove margins in generated HTML.
prettyprinter-lucid.cabal view
@@ -8,8 +8,10 @@ license-file:        LICENSE author:              George Thomas maintainer:          georgefsthomas@gmail.com-version:             0.1.0.1-extra-doc-files:     README.md+version:             0.2.0+extra-doc-files:+    CHANGELOG.md+    README.md  source-repository head     type: git@@ -19,10 +21,10 @@     exposed-modules:         Prettyprinter.Lucid     build-depends:-        base ^>= {4.12, 4.13, 4.14},-        lucid ^>= 2.9.12,+        base ^>= {4.12, 4.13, 4.14, 4.15, 4.16, 4.17, 4.18, 4.19, 4.20},+        lucid ^>= {2.9.12, 2.10, 2.11},         prettyprinter ^>= 1.7.0,-        text ^>= 1.2.3,+        text ^>= {1.2.3, 2.0, 2.1},     hs-source-dirs:         src     ghc-options:
src/Prettyprinter/Lucid.hs view
@@ -2,6 +2,7 @@  import qualified Data.Text as T import Lucid (Html, ToHtml (toHtml), br_, pre_)+import Lucid.Base (makeAttribute) import Prettyprinter.Render.Util.SimpleDocTree (SimpleDocTree (..))  renderHtml :: SimpleDocTree (Html () -> Html ()) -> Html ()@@ -13,4 +14,4 @@             STLine i -> br_ [] >> toHtml (T.replicate i $ T.singleton ' ')             STAnn ann content -> ann $ go content             STConcat contents -> foldMap go contents-     in pre_ . go+     in pre_ [makeAttribute "style" "margin: 0"] . go