summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Parsing/General.hs
AgeCommit message (Collapse)Author
2023-04-17Remove unnecessary 'spaces' in parseFromString.John MacFarlane
2023-01-10Update copyright years, it's 2023!Albert Krewinkel
2022-10-31First stab at mtl 2.3 compliance.John MacFarlane
This will no doubt produce a bunch of warnings and hence CI failures, which we'll need to work around with explicit imports.
2022-10-30hlint suggestions.John MacFarlane
2022-10-29Re-export lookupEntity from Text.Pandoc.XML [API change].John MacFarlane
2022-10-29T.P.Parsing.General: change `characterReference`, `charsInBalanced`.John MacFarlane
`characterReference` now returns a Text (as it should, because some named references don't correspond to a single Char), and uses the `lookupEntity` function from commonmark-hs instead of the slow one from tagsoup. `charsInBalanced` now takes a Text parser rather than a Char parser as argument. [API change]
2022-10-20Text.Pandoc.Parsing: remove `nested` [API change].John MacFarlane
It was not being used, and in fact it was a bad idea from the beginning, as it had no hope of solving the problem it was introduced to solve.
2022-10-19T.P.Shared: remove `mapLeft` [API change].John MacFarlane
This is just a synonym for Bifunctor.first.
2022-10-18T.P.Shared: remove `escapeURI`, `isURI`.John MacFarlane
These are now exported by Text.Pandoc.URI, and removing them from Shared helps make module structure more straightforward.
2022-10-18Revert "T.P.Parsing: export `registerIdentifier`."John MacFarlane
This reverts commit 20492d523c8324e36781cfbbc8092c796f94b151.
2022-10-18T.P.Parsing: export `registerIdentifier`.John MacFarlane
[API change] Use this in the HTML reader to register identifiers to avoid duplicates created by `auto_identifiers`.
2022-10-17T.P.Error: Remove PandocParsecError constructor from PandocError. (#8385)John MacFarlane
Henceforth we just use `PandocParseError`. T.P.Parsing now exports `fromParsecError`, which can be used to turn a parsec ParseError into a regular PandocParseError (the appearance to the user should be unchanged in every case). [API change] Closes #8382.
2022-10-16T.P.Parsing: Remove gratuitious renaming of Parsec types.John MacFarlane
We were exporting Parser, ParserT as synonyms of Parsec, ParsecT. There is no good reason for this and it can cause confusion. Also, when possible, we replace imports of Text.Parsec with T.P.Parsing. The idea is to make it easier, at some point, to switch to megaparsec or another parsing engine if we want to. T.P.Parsing new exports: Stream(..), updatePosString, SourceName, Parsec, ParsecT [API change]. Removed exports: Parser, ParserT [API change].
2022-10-03Rename T.P.Network.HTTP -> T.P.URI.John MacFarlane
This is still an unexported internal module. Export `urlEncode`, `escapeURI`, `isURI`, `schemes`, `uriPathToPath`. Re-export `escapeURI` and `isURI` from T.P.Shared (as they were exported before); drop exports of `schemes` and `uriPathToPath` [API change]. With this change, T.P.Class no longer depends on T.P.Shared.
2022-03-31Revert "Parsing.General: make manyChar1, etc. more strict."John MacFarlane
This reverts commit c1ab48874c04142988505ca5c5caa6626bb68211. Mistake in measurement.
2022-03-31Parsing.General: make manyChar1, etc. more strict.John MacFarlane
Profiling the muse reader revealed that these were creating huge thunks.
2022-03-25Rename T.P.Parsing.Combinators -> T.P.Parsing.General.John MacFarlane
Because many of the exported things aren't combinators... Also remove redundant explot of indentWith from T.P.Parsing.Lists.