hledger/hledger-lib/Hledger
Alex Chen f7fd6e6525 lib: refactor the raw number parser [API]
- Purpose: to reduce the verbosity of the previous implementation
- Split off `AmbiguousNumber` into its own type
- Introduce a function `AmbiguousNumber -> RawNumber` explicitly capturing the
  disambiguation logic
- Reduce the number of remaining constructors in `RawNumber` to just two,
  `WithSeparator` and `NoSeparator`
  - The choice to distinguish by the presence of digit separators is motivated
    by the need for this information later on when disallowing exponents on
    numbers with digit separators
2018-05-27 07:50:26 -07:00
..
Data lib: change some parsers to use takeWhileP 2018-05-22 12:16:46 -07:00
Read lib: refactor the raw number parser [API] 2018-05-27 07:50:26 -07:00
Reports budget: note some todos 2018-05-17 08:12:14 -07:00
Utils lib: change some parsers to use takeWhileP 2018-05-22 12:16:46 -07:00
Data.hs cli: --forecast adds periodic transactions to reports 2017-11-26 14:57:41 +00:00
Query.hs lib: remove the megaparsec compatability module 2018-05-22 12:16:46 -07:00
Read.hs lib, app, web: remove differences between command line and journal file aliases 2018-04-17 16:09:11 -07:00
Reports.hs budget: use a new first-class BudgetReport for --budget 2018-04-23 18:52:28 -07:00
Utils.hs Use quoteIfNeeded in quoteIfSpaced. Fix escapeDoubleQuotes to escape 2018-04-12 12:04:20 -07:00