Simon Michael
c80c72d7cd
dev: lib, cli, bin: enable/fix name shadowing warnings
...
And a few other cleanups.
2022-08-23 12:16:15 +01:00
Simon Michael
1c67d0860e
imp: errors: more error prettification
2022-07-13 03:59:44 +01:00
Simon Michael
35c1c9b6a2
pkg: progress towards supporting GHC 9.2 and newer libs ( #1774 )
...
hledger-lib builds, hledger's deps don't (shakespeare).
2021-12-06 12:32:50 -10:00
Stephen Morgan
1ed06f3bc8
pkg!: Remove Hledger.Utils.UTF8IOCompat module.
...
This module does nothing beyond define error' and usageError, which have
been moved to Hledger.Utils.
2021-08-30 15:57:33 -10:00
Stephen Morgan
68e975adf1
lib,cli,ui,web: Remove unused LANGUAGE pragmas.
2021-06-07 17:33:54 -10:00
Stephen Morgan
55308e1ca8
lib,cli,ui,web: Remove unnecessary CPP when dropping support for GHC 8.2.
2021-06-07 17:33:54 -10:00
Stephen Morgan
e63138ef7d
lib,cli: Assorted fixes for older GHC.
2021-01-02 15:08:09 +11:00
Stephen Morgan
e4e533eb9f
lib,cli,ui: Replace some uses of String with Text, get rid of some unpacks, clean up showMixed options.
2021-01-02 15:08:09 +11:00
Simon Michael
0dc8eca68a
lib: remove partial code from journalApplyAliases etc.
2020-11-25 21:06:31 -08:00
Simon Michael
9b9f2543d8
;lib: regexReplace: note the kind of RegexError still possible
2020-11-24 09:16:08 -08:00
Simon Michael
a9fbaaf284
;partial comment cleanups
2020-09-03 09:52:00 -07:00
Stephen Morgan
07dd30c1e5
lib,cli,ui: Change to consistent naming scheme for Hledger.Utils.Regex.
2020-09-01 11:36:34 +10:00
Stephen Morgan
af31d6e140
lib,cli,ui: Remove redundant Typeable and Data instances.
...
Also add some explicit import lists.
2020-08-31 15:41:30 +10:00
Stephen Morgan
01f5a92761
lib: Improve Read and Show instances for Regexp, get rid of custom show instance for Query.
2020-08-31 12:04:47 +10:00
Stephen Morgan
e3b2c94353
lib: Remove unneeded total Query code.
2020-08-31 12:04:47 +10:00
Stephen Morgan
e5371d5a6a
lib,cli,ui,web: Make Regexp a wrapper for Regex.
2020-08-31 12:04:45 +10:00
Simon Michael
3822c27bfe
;lib: regex: rename & export RegexError, export toRegex_, docs ( #1312 )
2020-08-06 15:25:58 -07:00
Simon Michael
4957008890
;lib: regex utilities: cleanup ( #1312 )
2020-08-06 11:35:04 -07:00
Simon Michael
a112085092
lib: add alternate regex utilities that don't call error ( #1312 )
2020-08-06 11:18:08 -07:00
Simon Michael
ede4bfd5b4
;mark more partial functions ( #1312 )
2020-08-05 17:29:43 -07:00
Simon Michael
3f55c23603
;review, tag all error calls with an easier to find PARTIAL: comment ( #1312 )
2020-08-05 16:08:33 -07:00
Simon Michael
3ef2fc9567
show a clearer error message on encountering a malformed regexp
2020-05-07 17:33:05 -07:00
Simon Michael
041541e466
lib: memoised versions of regexReplace[CI] ( #244 )
2015-09-26 15:45:17 -10:00
Simon Michael
f8f2d457b9
lib: memoize toRegex[CI] ( #244 )
...
The regex helpers were converting strings to regex-tdfa regular
expressions on the fly every time, but this appears to be quite
expensive. The simplest memoisation lib seems to solve it nicely.
2015-09-26 15:39:21 -10:00
Simon Michael
9e2111106b
drop regexpr dependency
2015-05-17 08:32:45 -07:00
Simon Michael
4538745005
adapt to GHC-7.10's foldable/traversable changes ( #239 )
2015-03-27 15:43:28 -07:00
Simon Michael
a2612f17c6
tweak wording
2014-10-29 08:27:52 -07:00
Simon Michael
d25fe21834
apply all matching account aliases, not just one directive and one option
2014-10-29 08:20:27 -07:00
Simon Michael
9fa22e0398
account aliases (and regexReplace) now support backreferences
2014-10-29 07:46:49 -07:00
Simon Michael
be9b637e0c
fix a regexReplaceCI bug
2014-10-24 15:04:21 -07:00
Simon Michael
bfedf367c4
export Regexp types, disambiguate CsvReader's
2014-10-24 14:30:49 -07:00
gwern
d1618aaca8
strip trailing whitespace from all Haskell files
2014-10-14 18:48:24 -07:00
Simon Michael
9f991fa94b
tweak Regex haddock
2014-07-08 11:50:19 -07:00
Simon Michael
5bebc2beb0
regex haddock fix
2014-07-06 14:08:45 -07:00
Simon Michael
3a16e6cfc7
mostly replace slow regexpr with regex-tdfa ( fixes #189 )
2014-07-06 14:03:28 -07:00
Simon Michael
04f6162e19
extract regular expression utils module
2014-07-06 10:11:02 -07:00