Skip to content

Commit

Permalink
Update to blaze-builder-0.4.1.0
Browse files Browse the repository at this point in the history
* 0.4.1.0
- Gain compatibility with the Semigroup/Monoid proposal
- Add Word8 HTML escaping builders
- Speed up `fromHtmlEscapedText` and `fromHtmlEscapedLazyText`

* 0.4.0.2
- Fixed warnings on GHC 7.10, courtesy of Mikhail Glushenkov.

* 0.4.0.1
- Tightened the version constraints on the bytestring package for GHC
  7.8

* 0.4.0.0
- This is now a compatibility shim for the new bytestring builder.
  Most of the old internal modules are gone.  See this blog post for
  more information:

  <http://blog.melding-monads.com/2015/02/12/announcing-blaze-builder-0-4/>

- The 'Blaze.ByteString.Builder.Html.Utf8.fromHtmlEscaped*' functions
  now strip out any ASCII control characters present in their inputs.
  See <lpsmith/blaze-builder#1> for more
  information.
  • Loading branch information
depressed-pho committed Jan 1, 2020
1 parent 6a0da73 commit 42fdd68
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 88 deletions.
21 changes: 13 additions & 8 deletions devel/hs-blaze-builder/DESCR
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
This library provides an abstraction of buffered output of byte
streams and several convenience functions to exploit it. For example,
it allows to efficiently serialize Haskell values to lazy bytestrings
with a large average chunk size. The large average chunk size allows
to make good use of cache prefetching in later processing steps
(e.g. compression) and reduces the sytem call overhead when writing
the resulting lazy bytestring to a file or sending it over the
network.
This library provides an implementation of the older blaze-builder
interface in terms of the new builder that shipped with
bytestring-0.10.4.0

This implementation is mostly intended as a bridge to the new builder,
so that code that uses the old interface can interoperate with code
that uses the new implementation. Note that no attempt has been made
to preserve the old internal modules, so code that has these
dependencies cannot use this interface.

New code should, for the most part, use the new interface. However,
this module does implement a chunked HTTP encoding, which is not
otherwise implemented (yet?) with the new builder.
6 changes: 3 additions & 3 deletions devel/hs-blaze-builder/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# $NetBSD: Makefile,v 1.8 2016/01/10 11:49:09 szptvlfn Exp $
# $NetBSD: Makefile,v 1.9 2020/01/01 06:44:06 pho Exp $

DISTNAME= blaze-builder-0.3.3.3
PKGREVISION= 5
DISTNAME= blaze-builder-0.4.1.0
CATEGORIES= devel

MAINTAINER= pho@cielonegro.org
Expand All @@ -10,4 +9,5 @@ LICENSE= modified-bsd

.include "../../mk/haskell.mk"
.include "../../devel/hs-text/buildlink3.mk"
.include "../../math/hs-semigroups/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
69 changes: 0 additions & 69 deletions devel/hs-blaze-builder/PLIST

This file was deleted.

7 changes: 4 additions & 3 deletions devel/hs-blaze-builder/buildlink3.mk
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# $NetBSD: buildlink3.mk,v 1.9 2018/01/07 13:04:03 rillig Exp $
# $NetBSD: buildlink3.mk,v 1.10 2020/01/01 06:44:06 pho Exp $

BUILDLINK_TREE+= hs-blaze-builder

.if !defined(HS_BLAZE_BUILDER_BUILDLINK3_MK)
HS_BLAZE_BUILDER_BUILDLINK3_MK:=

BUILDLINK_API_DEPENDS.hs-blaze-builder+= hs-blaze-builder>=0.3.3
BUILDLINK_ABI_DEPENDS.hs-blaze-builder+= hs-blaze-builder>=0.3.3.3nb5
BUILDLINK_API_DEPENDS.hs-blaze-builder+= hs-blaze-builder>=0.4.1
BUILDLINK_ABI_DEPENDS.hs-blaze-builder+= hs-blaze-builder>=0.4.1.0
BUILDLINK_PKGSRCDIR.hs-blaze-builder?= ../../devel/hs-blaze-builder

.include "../../devel/hs-text/buildlink3.mk"
.include "../../math/hs-semigroups/buildlink3.mk"
.endif # HS_BLAZE_BUILDER_BUILDLINK3_MK

BUILDLINK_TREE+= -hs-blaze-builder
11 changes: 6 additions & 5 deletions devel/hs-blaze-builder/distinfo
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
$NetBSD: distinfo,v 1.3 2015/11/03 03:27:31 agc Exp $
$NetBSD: distinfo,v 1.4 2020/01/01 06:44:06 pho Exp $

SHA1 (blaze-builder-0.3.3.3.tar.gz) = ebf1db8bdef36376c1552406a595fc799df3ddc6
RMD160 (blaze-builder-0.3.3.3.tar.gz) = 54bedeee30560c72356396c57b223d4abb5afa69
SHA512 (blaze-builder-0.3.3.3.tar.gz) = 9a138bcb370a6432b89debc025e5fbbba80a7e6bb608cd5f7368478a7104f97d5066de6e9920498bed8bd0da18aa9bae4bc07782725abe9e1ff5517317705091
Size (blaze-builder-0.3.3.3.tar.gz) = 67374 bytes
SHA1 (blaze-builder-0.4.1.0.tar.gz) = c22e27bc3d25b9b03df1a485be2eb410da33b7fd
RMD160 (blaze-builder-0.4.1.0.tar.gz) = 6c7be4e02aae77bfb3f5a59dd20634c6214a09fb
SHA512 (blaze-builder-0.4.1.0.tar.gz) = 0962634113a19d39fb19a9df895a4e4e3e0fc5b2c17fd0d5c27e1cd9da128fd3af2f01d7b0ce894d3964b5b3bd874aeae205b126e069a6e5d964ad97c753da39
Size (blaze-builder-0.4.1.0.tar.gz) = 61365 bytes
SHA1 (patch-blaze-builder.cabal) = cb658c404044a9a1d8a6545f0c0297f6c27c6d69
15 changes: 15 additions & 0 deletions devel/hs-blaze-builder/patches/patch-blaze-builder.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
$NetBSD: patch-blaze-builder.cabal,v 1.1 2020/01/01 06:44:06 pho Exp $

Relax the upper bound on semigroups

--- blaze-builder.cabal.orig 2018-03-14 21:11:24.000000000 +0000
+++ blaze-builder.cabal
@@ -80,7 +80,7 @@ Library
build-depends: bytestring >= 0.10.4 && < 1.0

if impl(ghc < 8.0)
- build-depends: semigroups >= 0.16 && < 0.19
+ build-depends: semigroups >= 0.16 && < 0.20

test-suite test
type: exitcode-stdio-1.0

0 comments on commit 42fdd68

Please sign in to comment.