14223 Commits

Author SHA1 Message Date
John MacFarlane 8be95ad8e5 Use custom Prelude based on relude.
The Prelude now longer exports partial functions, so
a large number of uses of these functions in the
code base have been rewritten.

A .ghci file has been added; this is necessary for
ghci to work properly with the custom Prelude.

Currently there are lots of compiler warnings.
We should either fix these or go to using a custom
Prelude that changes less than relude.
2021-03-13 15:05:37 -08:00
John MacFarlane 35b66a7671 MediaWiki reader: Allow block-level content in notes (ref).
Closes #7145.
2021-03-13 12:50:44 -08:00
John MacFarlane eed18d231c Use integral values for w:tblW in docx.
Cloess #7141.
2021-03-13 12:05:52 -08:00
John MacFarlane 9bd36b03e9 Add ghcid-test to Makefile 2021-03-13 11:58:31 -08:00
John MacFarlane 3519d6f3b4 Use eciteproc >= 0.3.0.9 2021-03-13 11:27:05 -08:00
Albert Krewinkel 777f8ec20b stack.yaml: add jira-wiki-markup-1.3.4 to extra-deps 2021-03-13 15:41:47 +01:00
Albert Krewinkel f8b49e77f8 Use jira-wiki-markup 1.3.4
Jira reader:

* Fixed parsing of autolinks (i.e., of bare URLs in the text).
  Previously an autolink would take up the rest of a line, as spaces
  were allowed characters in these items.

* Emoji character sequences no longer cause parsing failures. This was
  due to missing backtracking when emoji parsing fails.

Jira writer:

* Block quotes are only rendered as `bq.` if they do not contain a
  linebreak.
2021-03-13 14:53:58 +01:00
Albert Krewinkel 00e8d0678e Jira reader: mark divs created from panels with class "panel".
Closes: tarleb/jira-wiki-markup#2
2021-03-13 14:29:47 +01:00
Albert Krewinkel a8aa301428 Jira writer: improve div/panel handling
Include div attributes in panels, always render divs with class `panel`
as panels, and avoid nesting of panels.
2021-03-13 12:10:02 +01:00
John MacFarlane 894ed8ebb0 Citeproc: apply fixLinks correctly.
This is code that incorporates a prefix like `https://doi.org/`
into a following link when appropriate.  But it didn't work because
we were walking with a `[Inline] -> [Inline]` function on an `Inlines`.
Changed the point of application of `fixLink` to resolve the issue.
Closes #7130.
2021-03-12 11:58:52 -08:00
John MacFarlane 92ffd37475 Simplify compactDL. 2021-03-12 11:58:52 -08:00
Albert Krewinkel 872b4313a1 JATS templates: support 'equal-contrib' attrib for authors
Authors who contributed equally to a paper may be marked with
`equal-contrib`.
2021-03-11 11:07:59 +01:00
John MacFarlane 5608dc01e5 HTML writer: Add warnings on duplicate attribute values.
This prevents emitting invalid HTML.

Ultimately it would be good to prevent this in the types
themselves, but this is better for now.

T.P.Logging: Add DuplicateAttribute constructor to LogMessage.
[API change]
2021-03-10 10:19:40 -08:00
John MacFarlane e17127dc28 Re-add a needed dependency for benchmark. 2021-03-09 13:40:24 -08:00
John MacFarlane 1c23e3a824 RST reader: fix logic for ending comments.
Previously comments sometimes got extended too far.  Closes #7134.
2021-03-09 13:03:27 -08:00
John MacFarlane a8b2031bb4 Revert "Use -Wunused-packages on ghc >= 8.10."
This reverts commit 7a1d0f01e9.

This option gives confusing output when a build is interrupted,
suggesting that packages aren't required when we just didn't
get to the model that requires them.
2021-03-09 12:49:15 -08:00
John MacFarlane a9a05110d0 Remove some unused packages from pandoc.cabal. 2021-03-09 12:34:36 -08:00
John MacFarlane 7a1d0f01e9 Use -Wunused-packages on ghc >= 8.10. 2021-03-09 12:34:36 -08:00
Albert Krewinkel d7f8fbf04b Org writer: fix operator precedence mistake in previous commit 2021-03-09 21:16:11 +01:00
Albert Krewinkel b9b2586ed3 Org writer: prevent unintended creation of ordered list items
Adjust line wrapping if default wrapping would cause a line to be read
as an ordered list item.

Fixes #7132
2021-03-09 18:14:54 +01:00
John MacFarlane 0515c44859 linux/make_artifacts.sh: Use -f when removing artifacts/DONE. 2021-03-08 15:02:26 -08:00
John MacFarlane cac796e1ab ARM build script: more reliable detection of completion.
Previously we downloaded the tar.gz before it was complete.
2021-03-08 14:51:03 -08:00
John MacFarlane 31ca011e4a Use correct architecture in .tar.gz for linux. 2.12 2021-03-08 11:58:14 -08:00
John MacFarlane 7683912591 build-arm.sh: fix elapsed time. 2021-03-08 11:57:52 -08:00
John MacFarlane f49cd6343a Update RELEASE-CHECKLIST 2021-03-08 08:17:18 -08:00
John MacFarlane 3a763ac770 Update date in changelog and manual. 2021-03-08 07:45:23 -08:00
Albert Krewinkel 3e8546feed Fix, amend changelog. 2021-03-08 13:02:50 +01:00
Albert Krewinkel eb184d9148 Jira writer: use noformat instead of code for unknown languages.
Code blocks that are not marked as a language supported by Jira are
rendered as preformatted text with `{noformat}` blocks.

Fixes: tarleb/jira-wiki-markup#4
2021-03-08 12:50:35 +01:00
John MacFarlane efc9f4a762 More changelog fixes. 2021-03-07 22:18:49 -08:00
John MacFarlane 17cfcfb194 Update changelog. 2021-03-07 22:13:43 -08:00
John MacFarlane 459085c642 build-arm.sh: env variable for ARTIFACTS. 2021-03-07 20:58:36 -08:00
John MacFarlane f8e848094c build-arm.sh: print total build time 2021-03-07 19:02:36 -08:00
John MacFarlane 7eb4662df4 Fixed build-arm script.
Use environment variables which can be set to use different
AMIs, keys, or instance types.

Correctly detect successful build.
2021-03-07 18:06:38 -08:00
John MacFarlane 5aa73bd0a2 LaTeX reader: handle table cells containing & in \verb.
Closes #7129.
2021-03-07 15:49:02 -08:00
John MacFarlane 75d4bca862 build-arm.sh: retrieve build artifacts after success. 2021-03-07 13:27:55 -08:00
John MacFarlane c652dcc16b LaTeX reader: support hyperref command.
Closes #7127.
2021-03-07 13:22:00 -08:00
John MacFarlane d560038342 Add script to build an ARM binary on AWS. 2021-03-07 13:10:27 -08:00
John MacFarlane 09f81c16c5 Set --user in docker run to avoid permission issues.
We were unable previously to write to the artifacts directory.
2021-03-06 17:03:36 -08:00
John MacFarlane cf175c9752 Avoid subprocess for docker run. 2021-03-06 16:59:35 -08:00
John MacFarlane 271dd9e344 make debpkg: send docker output to docker.log in the host.
Otherwise once the container is gone we can't figure out
what happened.
2021-03-06 16:34:45 -08:00
John MacFarlane 1eb882fcdb linux build script: set architecture to 'unknown' when no match. 2021-03-06 13:45:16 -08:00
John MacFarlane f31ddecdac Makefile: Remove ARCH 2021-03-06 13:44:36 -08:00
John MacFarlane 086406cadf linux build script: handle architecture for aarch64. 2021-03-06 13:44:14 -08:00
John MacFarlane 09548d8992 Fix linux nightly build to use ghc 8.10.3.
With 9.0.1 we can't yet build all dependencies.
2021-03-06 12:47:42 -08:00
John MacFarlane faa77316ca Don't --rm docker. 2021-03-06 12:31:04 -08:00
John MacFarlane 735a69de6b Allow --resource-path to accumulate.
Previously, if `--resource-path` were used multiple times, the last
resource path would replace the others.

With this change, each time `--resource-path` is used, it prepends
the specified path components to the existing resource path.

Similarly, when `resource-path` is specified in a defaults file,
the paths provided will be prepended to the existing resource
path.

This change also allows one to avoid using the OS-specific path
separator; instead, one can simply use `--resource-path`
a number of times with single paths. This form of command
will not have an OS-dependent behavior.

This change facilitates the use of multiple, small defaults
files: each can specify a directory containing its own
resources without clobbering the resource paths set by
the others.

Closes #6152.
2021-03-06 10:32:51 -08:00
John MacFarlane 26524246d0 Fix docker image. 2021-03-06 09:50:31 -08:00
John MacFarlane ce7706d75b More Makefile tweaks around docker linux build. 2021-03-05 23:59:50 -08:00
John MacFarlane 70f9709455 Makefile: choose linux docker image depending on arch. 2021-03-05 23:32:03 -08:00
John MacFarlane 9837444330 Makefile: exit smoothly if no prior benchmark files found. 2021-03-05 21:11:35 -08:00