Commit graph

9 commits

Author SHA1 Message Date
pho
dc3a63e008 revbump after changing the default Haskell compiler 2022-02-12 08:50:25 +00:00
pho
ded8d256c2 Update to doctemplates-0.10.0.1
0.10.0.1
* Don't rely on aeson Object being implemented as a HashMap. This change is
  needed for doctemplates to compile against aeson 2.0.0.0.

0.10
* Change rendering and conditional behavior with booleans. Previously,
  $if(foo)$ evaluated to false iff foo would render as the empty
  string. This forced us to render a boolean False value as an empty
  string, rather than false. And this has caused various problems with
  templates (#16, jgm/pandoc#7402). Now, boolean False values render as
  false -- just as True values render as true. And conditionals are now
  sensitive to booleans, so $if(foo)$ evaluates to false when foo is a
  boolean False value, even though it would render as the nonempty string
  false.
2022-02-12 07:35:44 +00:00
pho
75588a9d5d Bump packages that depends on GHC 2022-01-18 02:48:01 +00:00
nia
a643c936b3 textproc: Replace RMD160 checksums with BLAKE2s checksums
All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Unfetchable distfiles (fetched conditionally?):
./textproc/convertlit/distinfo clit18src.zip
2021-10-26 11:21:28 +00:00
nia
e05b375eba textproc: Remove SHA1 hashes for distfiles 2021-10-07 15:00:34 +00:00
pho
4d74cf7192 *: Bump PKGREVISION for ghc-9.0.1 2021-05-03 19:00:52 +00:00
pho
c138d58980 Update to doctemplates-0.9
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].
2021-04-24 15:28:11 +00:00
rillig
15fe9894e6 hs-*: add PLIST files
These PLIST files have been autogenerated by mk/haskell.mk using
HS_UPDATE_PLIST=yes during a bulk build.  They will help to track changes
to the packages.  The Haskell packages didn't have PLIST files because
their paths contained package hashes.  These hashes are now determined by
mk/haskell.mk, which makes it easy to generate easy to read PLIST files.
2020-05-11 17:51:58 +00:00
pho
9316175b5e Import doctemplates-0.8.1
This is the text templating system used by pandoc. It supports
variable interpolation, iteration, tests for non-blank values, pipes,
and partials. Templates are rendered to doclayout Docs, and variable
values may come from a variety of different sources, including aeson
Values.
2020-01-15 11:35:54 +00:00