77 Commits

Author SHA1 Message Date
Tanguy
b0666ba4f1
Fixes for styleCheck:usages (#16)
* Fixes for styleCheck:usages
* Bump nim 1.2 in CI
2022-08-03 15:21:00 +02:00
Ivan Yonchovski
955597a4fd
Add setup/lock files (#14) 2022-07-12 21:34:52 +03:00
Mark Spanbroek
0f9b12abc6 version 0.10.4 0.10.4 2022-07-04 09:59:59 +02:00
Mark Spanbroek
d9333a8f03 Remove obsolete ASDF tool version 2022-07-04 09:56:56 +02:00
Mark Spanbroek
0895a9c065 Fix: without statement with error works in generic code 2022-07-04 09:53:02 +02:00
Mark Spanbroek
d7e9f0bf7f Version 0.10.3 0.10.3 2022-04-04 09:56:53 +02:00
Nickolay Bukreyev
361948499b Fix deprecation warning when importing errorban inside the library
`errorban` module [has been deprecated][deprecation] since v0.5.0.
The library continued to use it internally, but because of that, it
was triggering its own deprecation warning. This commit splits
`errorban.nim` into two pieces: the warning and actual code.

[deprecation]: https://github.com/status-im/questionable/commit/e66cd2439b
2022-04-04 09:52:01 +02:00
Mark Spanbroek
6018fd43e0 version 0.10.2 0.10.2 2022-01-12 17:57:03 +01:00
Mark Spanbroek
a748d22350 Fix: ensure that overridden =? operator does not remain in scope 2022-01-12 17:54:24 +01:00
Mark Spanbroek
ef29000f94 Without statement for Results provides access to errors 2022-01-12 17:54:24 +01:00
Mark Spanbroek
91a38040ea Add license 2022-01-10 11:04:48 +01:00
Mark Spanbroek
7b209af6fb version 0.10.1 2021-12-04 17:56:14 +01:00
Mark Spanbroek
92641b552d Switch warningAsError only works for Nim >= 1.4.0 2021-12-04 17:56:14 +01:00
Mark Spanbroek
cfe4c6fc95 Ensure that =? works with types that do not have a default value 2021-12-04 17:26:08 +01:00
Mark Spanbroek
d7a757a8cb Switch to Nim 1.6.0 for development 2021-11-01 17:18:49 +01:00
Mark Spanbroek
0fe40d2347 Run CI on Nim 1.2, 1.4 and 1.6 2021-11-01 17:18:35 +01:00
Mark Spanbroek
56a4bca641 Fix typo 2021-08-30 18:13:43 +02:00
Mark Spanbroek
4967084d22 Better errors when using a proc without a return type in a .? chain 2021-08-30 15:58:29 +02:00
Mark Spanbroek
b9a090d001 Ensure that test modules use local nimbledeps folder
Even when NIMBLE_DIR is set externally.
2021-07-12 11:26:35 +02:00
Mark Spanbroek
8feb684574 Fix "unused variable" warnings 2021-07-07 09:19:44 +02:00
Mark Spanbroek
4a1783c472 Add documentation comments 2021-06-04 17:34:48 +02:00
Mark Spanbroek
a2ded4f01a Simplify 2021-06-04 16:38:44 +02:00
Mark Spanbroek
986716511f version 0.10.0 0.10.0 2021-05-31 16:26:06 +02:00
Mark Spanbroek
3f18970931 Nim 1.4.8 2021-05-31 16:24:30 +02:00
Mark Spanbroek
93f5c919fb Ensure that optional binding works with closures 2021-05-31 16:24:21 +02:00
Mark Spanbroek
54516fd2d1 version 0.9.1 0.9.1 2021-05-06 17:29:48 +02:00
Mark Spanbroek
d18580bb68 Better error message when adding a void result to a .? chain 2021-05-06 17:28:58 +02:00
Mark Spanbroek
dd9ac6dc20 version 0.9.0 0.9.0 2021-05-06 17:14:19 +02:00
Mark Spanbroek
2700038316 Fix use of =? in generic code 2021-05-06 17:12:52 +02:00
Mark Spanbroek
7303be50da version 0.8.0 0.8.0 2021-05-04 16:18:58 +02:00
Mark Spanbroek
8bf4f27f30 Avoid wrapping option in option when using .?[] operator 2021-05-04 16:17:09 +02:00
Mark Spanbroek
e8ab268758 Ensure that .? chains work in generic code 2021-05-04 15:55:05 +02:00
Mark Spanbroek
ebc7a2b48e version 0.7.0 0.7.0 2021-04-19 15:53:27 +02:00
Mark Spanbroek
ee3d38d8d5 Fix typo 2021-04-19 15:52:15 +02:00
Mark Spanbroek
0569625f6a Replace .get with operator !
Rationale: when looking for code that might crash it's
easier to spot exclamation marks than invocations of get.
2021-04-19 15:52:07 +02:00
Mark Spanbroek
db9e1a343a Nim 1.4.6 2021-04-17 20:10:07 +02:00
Mark Spanbroek
fa56587bcd Avoid wrapping option in option and result in result 2021-04-17 19:50:02 +02:00
Mark Spanbroek
d82581244c Simplify 2021-04-17 19:25:33 +02:00
Mark Spanbroek
fca4c14e0c version 0.6.3 0.6.3 2021-04-16 12:29:06 +02:00
Mark Spanbroek
a8834aea66 Add missing test from readme 2021-04-16 12:27:43 +02:00
Mark Spanbroek
ef5f796463 without statement 2021-04-16 12:27:17 +02:00
Mark Spanbroek
827214f7a9 questionable/results also exports chaining and indexing 2021-04-16 12:10:10 +02:00
Mark Spanbroek
b85a8eb5c8 version 0.6.2 0.6.2 2021-04-15 11:04:54 +02:00
Mark Spanbroek
144c70580a Calling success without arguments returns ?!void result 2021-04-15 11:04:26 +02:00
Mark Spanbroek
a66e42d058 version 0.6.1 0.6.1 2021-04-15 10:55:21 +02:00
Mark Spanbroek
89850aab50 Makes |?, =? and .option compatible with other types of Result 2021-04-15 10:54:50 +02:00
Mark Spanbroek
83101ce073 version 0.6.0 0.6.0 2021-04-15 09:48:09 +02:00
Mark Spanbroek
fd73ff713f Adds failure overload that uses result to determine type 2021-04-15 09:47:08 +02:00
Mark Spanbroek
86bfcc1a47 Use failure and success instead of ok and err
- Adds `isFailure` and `isSuccess`.
- No longer exports `ok`, `err`, `isErr` and `isOk`.
2021-04-15 09:39:37 +02:00
Mark Spanbroek
a2023ae18e Documented how to work with =? in generic procs 2021-04-12 18:05:01 +02:00