| 1 |
[1.23.1.1] |
| 2 |
|
| 3 |
* Remove unused `ghc-prim` dependency (konsumlam). |
| 4 |
|
| 5 |
* Bump bound for QuickCheck. |
| 6 |
|
| 7 |
* Allow deepseq-1.5 (Bodigrim). |
| 8 |
|
| 9 |
* Fix 'patter' typo in SimpleFigure haddock (Owen Shepherd). |
| 10 |
|
| 11 |
[1.23.1] |
| 12 |
|
| 13 |
* Restore toJSONFilter instance for pure `a -> [a]`. |
| 14 |
This went missing after my ill-considered revision to #105, |
| 15 |
commit 183af9d9f1066be974ac55fd23a4c985999d3ce8 . See jgm/pandoc#8976. |
| 16 |
|
| 17 |
* Generalize ToJSONFilter instance. Previously a pure function `a -> a` |
| 18 |
could only be promoted to a filter in IO. Now we allow it to work with |
| 19 |
any instance of MonadIO. (This adds to #105.) |
| 20 |
|
| 21 |
* Allow bytestring 0.12. |
| 22 |
|
| 23 |
[1.23.0.1] |
| 24 |
|
| 25 |
* Allow aeson 2.2. |
| 26 |
|
| 27 |
* Remove dependency on string-qq (recbecca skinner). |
| 28 |
|
| 29 |
[1.23] |
| 30 |
|
| 31 |
* Remove Null constructor from Block (#91) [API change]. |
| 32 |
|
| 33 |
* ToJSONFilter: Add instance for MonadIO (#105, Willem Van Onsem) |
| 34 |
[API change]. |
| 35 |
|
| 36 |
* Add `Figure` block constructor (Albert Krewinkel, Aner Lucero, |
| 37 |
and Christian Despres) [API change]. The new Figure block represents |
| 38 |
a figure with attributes, caption, and arbitrary block content. |
| 39 |
|
| 40 |
[1.22.2.1] |
| 41 |
|
| 42 |
* Allow aeson 2.1.* and criterion 1.6. |
| 43 |
|
| 44 |
[1.22.2] |
| 45 |
|
| 46 |
* Use StrictData in Text.Pandoc.Definition. |
| 47 |
|
| 48 |
* Add Walkable Meta(Value) Pandoc instances (Travis Cardwell). |
| 49 |
|
| 50 |
[1.22.1] |
| 51 |
|
| 52 |
* Text.Pandoc.Builder: add simpleFigure, simpleFigureWith, |
| 53 |
and the SimpleFigure bidirectional pattern synonym |
| 54 |
(Aner Lucero) [API change]. |
| 55 |
|
| 56 |
* Allow bytestring 0.11 (Alexander Batischev). |
| 57 |
|
| 58 |
* Update stack resolver to lts-18.10 |
| 59 |
|
| 60 |
* Allow aeson 2+. Tested with aeson 2.0.1.0. |
| 61 |
|
| 62 |
* Allow transformers 0.6. |
| 63 |
|
| 64 |
* Fix incorrect table ColWidth documentation (#85, Nils Carlson). |
| 65 |
The documentation stated that the ColWidth represented the width |
| 66 |
of the column as a fraction of the table width when in represents |
| 67 |
a percentage of the text width. |
| 68 |
|
| 69 |
[1.22] |
| 70 |
|
| 71 |
* Deprecate isNull from Builder: null can serve just as well (#67). |
| 72 |
Use null instead of isNull in Arbitrary (Christian Despres, #84). |
| 73 |
|
| 74 |
* Use untagged JSON encoding for single-constructor types (#75, #76, |
| 75 |
Christian Despres). All of the single constructor types related |
| 76 |
to Table are now represented in JSON either as arrays (for |
| 77 |
multi-argument constructors) or as the representation of the |
| 78 |
inner type (for single argument constructors). This behaviour |
| 79 |
for newtype-defined and multi-argument non-record types is now |
| 80 |
consistent across the entire JSON interface, with the exception |
| 81 |
of Pandoc itself (which is represented as a JSON object with |
| 82 |
additional metadata). Multi-argument records (of which Citation |
| 83 |
is the only example) are still represented as objects with the |
| 84 |
record accessors as keys. |
| 85 |
|
| 86 |
* The Meta and Citation types now use derived JSON serialization (newtype |
| 87 |
and generic, respectively). The format remains the same as before |
| 88 |
(Christian Despres). |
| 89 |
|
| 90 |
* New serialization tests now test that Meta and the Table types are |
| 91 |
encoded properly in JSON (Christian Despres). |
| 92 |
|
| 93 |
* Use TH To/FromJSON instances (Christian Despres). |
| 94 |
|
| 95 |
* Remove unused Legacy modules (#80, Despres). |
| 96 |
They are not exported, and are not used internally. |
| 97 |
|
| 98 |
* Change the table builder to permit looser intermediate table heads (#77, |
| 99 |
Christian Despres). |
| 100 |
|
| 101 |
The table builder (and the normalizeTableBody function) now permit |
| 102 |
cells in the intermediate head of a TableBody to extend past the |
| 103 |
RowHeadColumns. This allows for intermediate tables to have |
| 104 |
subheadings that extend across the entire table. |
| 105 |
|
| 106 |
Formerly the table builder would treat the intermediate head like the |
| 107 |
intermediate body, and clip or drop cells that extended past the row |
| 108 |
head. |
| 109 |
|
| 110 |
* Update QuickCheck lower bound. |
| 111 |
|
| 112 |
* Fix redundant pattern match. |
| 113 |
|
| 114 |
[1.21] |
| 115 |
|
| 116 |
* Add Underline constructor (#68, Vaibhav Sagar). |
| 117 |
|
| 118 |
* Improve table types to allow col, rowspans and more (#65, Christian |
| 119 |
Despres). The additions include modification of the Block type, some |
| 120 |
newtypes related to tables, and changes to the table builders. The table |
| 121 |
builder is now aware of the new Table constructor, and normalizes the |
| 122 |
input table appropriately, so that when laid onto a grid the resulting |
| 123 |
table has no empty spaces, overlapping cells, or cells that extend beyond |
| 124 |
their section boundary. |
| 125 |
|
| 126 |
Three properties of normalization are checked: |
| 127 |
|
| 128 |
- Normalization is idempotent. |
| 129 |
- Each row of a normalized table is an initial segment of the |
| 130 |
corresponding row in the unnormalized table, modulo changed cell |
| 131 |
dimensions, dropped cells, and padding with empty cells. This is only |
| 132 |
checked for the first row of the TableBody, however, due to row head |
| 133 |
difficulties. |
| 134 |
- The sum of the cell lengths in the first row of every |
| 135 |
normalized table section is always equal to the total table width. |
| 136 |
|
| 137 |
`simpleTable` has been changed so that a null header list becomes a |
| 138 |
TableHead with a null body, not a TableHead with a single empty row. |
| 139 |
|
| 140 |
* Bump QuickCheck upper bound. |
| 141 |
|
| 142 |
* Change lower bound for QuickCheck to 2.10 (needed for `liftShrink2`). |
| 143 |
|
| 144 |
* Small code quality improvements (Joseph C. Sible, #69). |
| 145 |
|
| 146 |
* Allow aeson 1.5 (#72, Felix Yan). |
| 147 |
|
| 148 |
* Fixed documentation typo (Merlin Göttlinger). |
| 149 |
|
| 150 |
* Add COMPLETE pragmas to the pattern definitions (Christian Despres). |
| 151 |
|
| 152 |
[1.20] |
| 153 |
|
| 154 |
* Change all uses of String in type definitions to strict Text |
| 155 |
(Christian Despres) [API change]. The MetaValue instances using String |
| 156 |
have been kept, and parallel ones using Text were added. |
| 157 |
|
| 158 |
* Remove the Arbitrary Text orphan instance (Christian Despres). |
| 159 |
This instance should not have been in the Text.Pandoc.Arbitrary, since |
| 160 |
it would have been exported with the rest of the instances in that |
| 161 |
module. Instead, more shrink* functions were added to compensate for |
| 162 |
the absence of this instance. |
| 163 |
|
| 164 |
* Add Text.Pandoc.Legacy.Definition (Christian Despres). |
| 165 |
To ease the transition to Text, this module provides an interface |
| 166 |
compatible with the String one, so that any unqualified imports of |
| 167 |
Text.Pandoc.Definition in other packages can be replaced by |
| 168 |
Text.Pandoc.Legacy.Definition without other code changes. This is done |
| 169 |
with PatternSynonyms. |
| 170 |
|
| 171 |
Some of the constructors of the types Meta, MetaValue, Block, Inline, |
| 172 |
Format, and Citation required PatternSynonym handling. The Attr and |
| 173 |
Target types had to be redefined, and certain functions had to be |
| 174 |
rewritten to handle String or the old Attr and Target types in this |
| 175 |
module. This module otherwise exports the definitions in |
| 176 |
Text.Pandoc.Definition unchanged. |
| 177 |
|
| 178 |
This is not a perfect drop-in replacement, since some imports like |
| 179 |
Inline(..) will no longer work. This may also cause incomplete pattern |
| 180 |
warnings when used, since the coverage checker does not seem to be |
| 181 |
aware of PatternSynonyms. |
| 182 |
|
| 183 |
* Add Text.Pandoc.Legacy.Builder (Christian Despres). |
| 184 |
Like Text.Pandoc.Legacy.Definition, this modules provides a |
| 185 |
compatibility interface while the transition to Text takes |
| 186 |
place. Unlike that module, this module only requires redefining the |
| 187 |
ToMetaValue and HasMeta classes and a few functions so that they use |
| 188 |
the old types. No PatternSynonyms are required. |
| 189 |
|
| 190 |
* Change Semigroup/Monoid instance for Meta. |
| 191 |
Previously `<>` was left-biased, so if meta1 and meta2 both |
| 192 |
contained a field 'foo', the value from meta1 would be retained |
| 193 |
in `meta1 <> meta2`, and the value from meta2 ignored. |
| 194 |
This is counterintuitive and doesn't work well with pandoc; |
| 195 |
for example, we want to be able to override a value in an |
| 196 |
earlier `--metadata-file` with a later one on the command line. |
| 197 |
|
| 198 |
It also makes the behavior of metadata more like other |
| 199 |
things (such as reference links, where later definitions |
| 200 |
take precedence over earlier ones). |
| 201 |
|
| 202 |
Note that this change may break some current workflows, |
| 203 |
if one is relying on metadata fields that occur later in |
| 204 |
a document to be overridden by those occurring earlier. |
| 205 |
|
| 206 |
[1.17.6.1] |
| 207 |
|
| 208 |
* Relax version bound for string-qq. |
| 209 |
|
| 210 |
[1.17.6] |
| 211 |
|
| 212 |
* Walk: export walk and query helpers (Albert Krewinkel) [API change]. |
| 213 |
The `walk*M` and `query*` functions are helpful when defining new |
| 214 |
`Walkable` instances. |
| 215 |
* Allow QuickCheck 2.13. |
| 216 |
* Document meaning of Int in ListAttributes (#45). |
| 217 |
* Update copyright year spans to include 2019 (Albert Krewinkel). |
| 218 |
* Remove CPP instructions for GHC versions < 7.10 (Albert Krewinkel). |
| 219 |
* update list of GHC versions used for testing (Albert Krewinkel). |
| 220 |
* Fix compiler and hlint warnings (Pete Ryland). |
| 221 |
|
| 222 |
[1.17.5.4] |
| 223 |
|
| 224 |
* Put NFData in scope for ghc < 7.10. |
| 225 |
* Reduce deepseq lower bound for ghc < 7.10. |
| 226 |
|
| 227 |
[1.17.5.3] |
| 228 |
|
| 229 |
* For ghc < 7.10, constrain deepseq-generics to >= 0.2, which no |
| 230 |
longer exprots NFData from deepseq. Add deepseq dependency. |
| 231 |
|
| 232 |
[1.17.5.2] |
| 233 |
|
| 234 |
* Bump upper bound for deepseq-generics, QuickCheck, criterion. |
| 235 |
* Implement QuickCheck shrinking for Inlines and Blocks (Alexander Krotov). |
| 236 |
|
| 237 |
[1.17.5.1] |
| 238 |
|
| 239 |
* Declare the ToMetaValue instance for String as OVERLAPPING (#46). |
| 240 |
|
| 241 |
[1.17.5] |
| 242 |
|
| 243 |
|
| 244 |
* Bump upper bounds for aeson, base. |
| 245 |
* Allow building on older ghc versions (George Wilson). |
| 246 |
* Text.Pandoc.Arbitrary: generate SoftBreaks and LineBreaks |
| 247 |
(Alexander Krotov). |
| 248 |
* Pad table rows up to maximum row length, to guarantee that |
| 249 |
all rows have the same number of columns |
| 250 |
(see jgm/pandoc#4059, Francesco Occhipinti). |
| 251 |
* Make String an instance of ToMetaValue (Alexander Krotov). |
| 252 |
|
| 253 |
[1.17.4.2] |
| 254 |
|
| 255 |
* Fix compiler warnings. |
| 256 |
|
| 257 |
[1.17.4.1] |
| 258 |
|
| 259 |
* Import Semigroups when needed rather than using CPP. |
| 260 |
* Bump criterion upper bound. |
| 261 |
|
| 262 |
[1.17.4] |
| 263 |
|
| 264 |
* Add Semigroup instances for Pandoc, Meta, Inlines, Blocks |
| 265 |
(if base >= 4.9). This is needed for the library to compile |
| 266 |
with ghc 8.4. |
| 267 |
* Bumped criterion upper bound. |
| 268 |
|
| 269 |
[1.17.3.1] |
| 270 |
|
| 271 |
* Bumped upper bounds for criterion and QuickCheck. |
| 272 |
|
| 273 |
[1.17.3] |
| 274 |
|
| 275 |
* Added Walkable instances for `[Inline] Inline` and `[Block] Block`. |
| 276 |
|
| 277 |
[1.17.2] |
| 278 |
|
| 279 |
* Provide default implementation for walk (Albert Krewinkel). |
| 280 |
The implementations for `walk` and `walkM` are very similar, so a |
| 281 |
default method is provided which implements the former in terms of the |
| 282 |
latter. This change should not affect performance, as the `Identity` |
| 283 |
functor, which is used in the default definition, is a newtype that |
| 284 |
should be eliminated at compile time. (This requires a dependency |
| 285 |
on transformers for ghc 7.8.x.) |
| 286 |
* Force optimizations when compiling Walk module (Albert Krewinkel). |
| 287 |
* Add `Applicative m` to the context of walkM (Albert Krewinkel). |
| 288 |
The acceptance of AMP makes this a natural change. |
| 289 |
* Add `Walkable [Block]` and `Walkable [Inline]` instances (Albert |
| 290 |
Krewinkel). |
| 291 |
* Factored out duplicate code in Walk. |
| 292 |
* Added benchmark. |
| 293 |
* Text.Pandoc.JSON: Use `walk` instead of `bottomUp` in the |
| 294 |
`ToJSONFilter` instance for `a -> [a]`. Note that behavior will be |
| 295 |
slightly different, since bottomUp's treatment of a function `[a] -> [a]` |
| 296 |
is to apply it to each sublist of a list, while walk applies it only to |
| 297 |
maximal sublists. Usually the latter behavior is what is wanted, and the |
| 298 |
former can be simulated when needed. But there may be existing filters |
| 299 |
that need to be rewritten in light of the new behavior. |
| 300 |
|
| 301 |
[1.17.1] |
| 302 |
|
| 303 |
* Better consistency in simpleTable and table (jgm/pandoc#3648). |
| 304 |
If `headers` is empty, we populate it with empty cells, using the rows |
| 305 |
to determine number of columns. We also ensure that there are numcols |
| 306 |
alignments and column widths. |
| 307 |
* Make sure Div and Span occur in Arbitrary instances. |
| 308 |
* Bump dependency upper bounds. |
| 309 |
* Removed unused mapConst. |
| 310 |
|
| 311 |
[1.17.0.5] |
| 312 |
|
| 313 |
* Allow aeson 1.1. |
| 314 |
* Added tests for Walk (originally from pandoc). |
| 315 |
* Renamed README -> README.md, fix link (Kolen Cheung). |
| 316 |
|
| 317 |
[1.17.0.4] |
| 318 |
|
| 319 |
* Re-add Functor constraint to walkM, needed for ghc 7.8. |
| 320 |
* Turn off redundant-constraints warning for Walk (for ghc 8.0.1+). |
| 321 |
* Added necessary Data.Traversable import. |
| 322 |
* Allow HUnit 1.5. |
| 323 |
|
| 324 |
[1.17.0.3] |
| 325 |
|
| 326 |
* More ghc 7.8 compatibility imports. |
| 327 |
|
| 328 |
[1.17.0.2] |
| 329 |
|
| 330 |
* Added a necessary import from Data.Monoid (for ghc 7.8). |
| 331 |
|
| 332 |
[1.17.0.1] |
| 333 |
|
| 334 |
* Fix compiler warnings around Data.Monoid import on some platforms. |
| 335 |
|
| 336 |
[1.17] |
| 337 |
|
| 338 |
* Remimplement json encoding of inlines manually (Jesse Rosenthal). |
| 339 |
This is the first step to doing manual encoding and decoding of pandoc |
| 340 |
JSON. This will replace the current generic deriving, which can be a |
| 341 |
moving target. |
| 342 |
* Move Arbitrary instances for types from pandoc (Jesse Rosenthal). |
| 343 |
* Remove empty arrays for leaf elements (Jesse Rosenthal). |
| 344 |
Elements with no children (Space, SoftBreak, LineBreak, HorizontalRule, |
| 345 |
Null) previously had an empty array for their "c" value. We remove that |
| 346 |
here. This is a breaking change for the JSON format. |
| 347 |
* New toplevel JSON format with api-version (Jesse Rosenthal). The version |
| 348 |
number is the pandoc-types version. The toplevel format was previously: |
| 349 |
|
| 350 |
[{"unMeta": META}, [BLOCKS]] |
| 351 |
|
| 352 |
It is now: |
| 353 |
|
| 354 |
{ |
| 355 |
"pandoc-api-version" : [MAJ, MIN, REV], |
| 356 |
"meta" : META, |
| 357 |
"blocks": BLOCKS |
| 358 |
} |
| 359 |
|
| 360 |
Decoding fails if the major and minor version numbers don't match. |
| 361 |
* Add simple quickcheck tests to verify that roundtrip works properly |
| 362 |
(Jesse Rosenthal). |
| 363 |
* Add a LineBlock block element (Albert Krewinkel). |
| 364 |
* Add explicit unit tests for encoding and decoding (Jesse Rosenthal). |
| 365 |
* Fixed warnings in Walk, Builder. |
| 366 |
* Test with travis and appveyor. |
| 367 |
|
| 368 |
[1.16.1.1] |
| 369 |
|
| 370 |
* Allow aeson 1.0.*. |
| 371 |
|
| 372 |
[1.16.1] |
| 373 |
|
| 374 |
* Allow aeson 0.11.*. |
| 375 |
* Export pandocTypesVersion from Text.Pandoc.Definition. |
| 376 |
|
| 377 |
[1.16.0.1] |
| 378 |
|
| 379 |
* Use deepseq instead of deepseq-generics. deepseq now allows deriving |
| 380 |
generic NFData instances, so we don't need deepseq-generics. |
| 381 |
* Removed unneeded instance, use OVERLAPPING pragma for ghc 7.10. |
| 382 |
* Added CPP so that deepseq-generics is used for ghc < 7.10. |
| 383 |
* Added tested-with, generate .travis.yml using make_travis_yml.hs |
| 384 |
* Added stack.yaml |
| 385 |
|
| 386 |
[1.16] |
| 387 |
|
| 388 |
* Added Attr field to Image and Link. |
| 389 |
* Added SoftBreak constructor to Inline |