Skip to content

Commit

Permalink
Update to doctemplates-0.9
Browse files Browse the repository at this point in the history
0.9
* Add BoolVal constructor to Val. This gives a smoother interface with
  JSON and YAML. [API change]
* Remove overlapping instances by generalizing ToContext String String
  and FromContext String String to TemplateTarget [a] => ToContext [a]
  [a] and TemplateTarget [a] => FromContext [a] [a]. Remove the
  instance ToContext String (Doc String). Remove redundant
  constraints. (#9, favonia) [API change]

0.8.3
* Properly handle nested loops (#15). Previously "it" was always used
  for the variable in a loop, and in a nested loop there was no way to
  distinguish the value of the inner iteration from the value of the
  outer one. Now we assign the iterated value to both "it" and to the
  original variable name (e.g. "foo.bar"). This probably has a small
  negative performance impact. Note that this change also affects the
  output of the template parser: original variable names are now
  retained instead of being replaced by "it".
* Remove duplicate IsString constraint (#14, Mario Lang).
* Update haddocks from README (#10).
* Minor code clean-ups (#7, favonia).
* Add hsyaml >= 0.2 constraint (#6).

0.8.2
* Add filters: first, rest, last, allbutlast.
* New constructors for Filter: FirstItem, LastItem, Rest, AllButLast
  [API change].
  • Loading branch information
depressed-pho committed Apr 24, 2021
1 parent 1e833d4 commit bffe8fc
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 36 deletions.
5 changes: 3 additions & 2 deletions textproc/hs-doctemplates/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.1 2020/01/15 11:35:54 pho Exp $
# $NetBSD: Makefile,v 1.2 2021/04/24 15:28:11 pho Exp $

DISTNAME= doctemplates-0.8.1
DISTNAME= doctemplates-0.9
CATEGORIES= textproc

MAINTAINER= [email protected]
Expand All @@ -14,5 +14,6 @@ LICENSE= modified-bsd
.include "../../math/hs-scientific/buildlink3.mk"
.include "../../converters/hs-text-conversions/buildlink3.mk"
.include "../../devel/hs-unordered-containers/buildlink3.mk"
.include "../../devel/hs-vector/buildlink3.mk"
.include "../../mk/haskell.mk"
.include "../../mk/bsd.pkg.mk"
52 changes: 26 additions & 26 deletions textproc/hs-doctemplates/PLIST
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
@comment $NetBSD: PLIST,v 1.1 2020/05/11 17:52:15 rillig Exp $
${HS_INTF}/package-description
${HS_INTF}/package-id
${HS_IMPL}/Text/DocTemplates.dyn_hi
${HS_IMPL}/Text/DocTemplates.hi
${HS_IMPL}/Text/DocTemplates.p_hi
${HS_IMPL}/Text/DocTemplates/Internal.dyn_hi
${HS_IMPL}/Text/DocTemplates/Internal.hi
${HS_IMPL}/Text/DocTemplates/Internal.p_hi
${HS_IMPL}/Text/DocTemplates/Parser.dyn_hi
${HS_IMPL}/Text/DocTemplates/Parser.hi
${HS_IMPL}/Text/DocTemplates/Parser.p_hi
${HS_IMPL}/libHS${HS_PKGID}.a
${HS_IMPL}/libHS${HS_PKGID}_p.a
@comment $NetBSD: PLIST,v 1.2 2021/04/24 15:28:11 pho Exp $
lib/doctemplates-${PKGVERSION}/${HS_VERSION}/package-description
lib/doctemplates-${PKGVERSION}/${HS_VERSION}/package-id
lib/${HS_PLATFORM}/${HS_PKGID}/Text/DocTemplates.dyn_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Text/DocTemplates.hi
lib/${HS_PLATFORM}/${HS_PKGID}/Text/DocTemplates.p_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Text/DocTemplates/Internal.dyn_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Text/DocTemplates/Internal.hi
lib/${HS_PLATFORM}/${HS_PKGID}/Text/DocTemplates/Internal.p_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Text/DocTemplates/Parser.dyn_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Text/DocTemplates/Parser.hi
lib/${HS_PLATFORM}/${HS_PKGID}/Text/DocTemplates/Parser.p_hi
lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}.a
lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}_p.a
lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
${HS_DOCS}/LICENSE
${HS_DOCS}/html/Text-DocTemplates-Internal.html
${HS_DOCS}/html/Text-DocTemplates-Parser.html
${HS_DOCS}/html/Text-DocTemplates.html
${HS_DOCS}/html/doc-index.html
${HS_DOCS}/html/doctemplates.haddock
${HS_DOCS}/html/haddock-bundle.min.js
${HS_DOCS}/html/index.html
${HS_DOCS}/html/linuwial.css
${HS_DOCS}/html/meta.json
${HS_DOCS}/html/quick-jump.css
${HS_DOCS}/html/synopsis.png
share/doc/${HS_PLATFORM}/doctemplates-${PKGVERSION}/LICENSE
share/doc/${HS_PLATFORM}/doctemplates-${PKGVERSION}/html/Text-DocTemplates-Internal.html
share/doc/${HS_PLATFORM}/doctemplates-${PKGVERSION}/html/Text-DocTemplates-Parser.html
share/doc/${HS_PLATFORM}/doctemplates-${PKGVERSION}/html/Text-DocTemplates.html
share/doc/${HS_PLATFORM}/doctemplates-${PKGVERSION}/html/doc-index.html
share/doc/${HS_PLATFORM}/doctemplates-${PKGVERSION}/html/doctemplates.haddock
share/doc/${HS_PLATFORM}/doctemplates-${PKGVERSION}/html/haddock-bundle.min.js
share/doc/${HS_PLATFORM}/doctemplates-${PKGVERSION}/html/index.html
share/doc/${HS_PLATFORM}/doctemplates-${PKGVERSION}/html/linuwial.css
share/doc/${HS_PLATFORM}/doctemplates-${PKGVERSION}/html/meta.json
share/doc/${HS_PLATFORM}/doctemplates-${PKGVERSION}/html/quick-jump.css
share/doc/${HS_PLATFORM}/doctemplates-${PKGVERSION}/html/synopsis.png
share/${HS_PLATFORM}/doctemplates-${PKGVERSION}/README.md
share/${HS_PLATFORM}/doctemplates-${PKGVERSION}/changelog.md
7 changes: 4 additions & 3 deletions textproc/hs-doctemplates/buildlink3.mk
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# $NetBSD: buildlink3.mk,v 1.1 2020/01/15 11:35:54 pho Exp $
# $NetBSD: buildlink3.mk,v 1.2 2021/04/24 15:28:11 pho Exp $

BUILDLINK_TREE+= hs-doctemplates

.if !defined(HS_DOCTEMPLATES_BUILDLINK3_MK)
HS_DOCTEMPLATES_BUILDLINK3_MK:=

BUILDLINK_API_DEPENDS.hs-doctemplates+= hs-doctemplates>=0.8.1
BUILDLINK_ABI_DEPENDS.hs-doctemplates+= hs-doctemplates>=0.8.1
BUILDLINK_API_DEPENDS.hs-doctemplates+= hs-doctemplates>=0.9
BUILDLINK_ABI_DEPENDS.hs-doctemplates+= hs-doctemplates>=0.9
BUILDLINK_PKGSRCDIR.hs-doctemplates?= ../../textproc/hs-doctemplates

.include "../../converters/hs-aeson/buildlink3.mk"
Expand All @@ -16,6 +16,7 @@ BUILDLINK_PKGSRCDIR.hs-doctemplates?= ../../textproc/hs-doctemplates
.include "../../math/hs-scientific/buildlink3.mk"
.include "../../converters/hs-text-conversions/buildlink3.mk"
.include "../../devel/hs-unordered-containers/buildlink3.mk"
.include "../../devel/hs-vector/buildlink3.mk"
.endif # HS_DOCTEMPLATES_BUILDLINK3_MK

BUILDLINK_TREE+= -hs-doctemplates
10 changes: 5 additions & 5 deletions textproc/hs-doctemplates/distinfo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$NetBSD: distinfo,v 1.1 2020/01/15 11:35:54 pho Exp $
$NetBSD: distinfo,v 1.2 2021/04/24 15:28:11 pho Exp $

SHA1 (doctemplates-0.8.1.tar.gz) = 54159357b3a23ffdeb7d89ea9aae6b08a50f3bd4
RMD160 (doctemplates-0.8.1.tar.gz) = d5baf799d38e8c7eec0f9a163d3867f90871a4af
SHA512 (doctemplates-0.8.1.tar.gz) = eb733421ff884e19a5c0c637fe1eaa3d0fcee9b6382939b148a0f9b493dc7b5c27344411bb542b7244a96fe613d8a587074936ff81ec367027364c98d338d6f6
Size (doctemplates-0.8.1.tar.gz) = 26476 bytes
SHA1 (doctemplates-0.9.tar.gz) = 24af93320be556c02b91ac1bd9612a83540967f3
RMD160 (doctemplates-0.9.tar.gz) = 37b103a8b73faf0325a44bfcaa4085c20a6097d1
SHA512 (doctemplates-0.9.tar.gz) = 3216fc7ef4e2a45230a2854c22c2a8622774bc834bbf59d34134912b3942df2a541230bd91324995e13e19098a0fa0bf7057c7d55ca35ec75da7840fddd61a37
Size (doctemplates-0.9.tar.gz) = 27366 bytes

0 comments on commit bffe8fc

Please sign in to comment.