Leonardo de Moura
09ad6cc50a
fix: fixes #306 fixes #307
2021-02-06 12:31:51 -08:00
Leonardo de Moura
f57c184dbd
chore: remove = true old workarounds
...
@Kha The old `= true` workarounds are not needed anymore, they were
due to another issue and are not related to yesterday's issue.
That is, the one exposed by the `ForIn` typeclass.
2021-02-05 13:48:03 -08:00
Leonardo de Moura
d0ffecd419
chore: consistency
...
Make sure `Array.all` and `Array.any` parameter order is similar to
`List.all` and `List.any`.
2021-02-04 20:39:28 -08:00
Leonardo de Moura
53539b1dff
chore: use polymorphic method forIn
2021-02-04 18:13:01 -08:00
Leonardo de Moura
aae8a35150
feat: add ForIn type class
2021-02-04 17:59:44 -08:00
Leonardo de Moura
d956f0ae9f
feat: use destructTuple to compile for in notation instead of pattern matchin
2021-02-04 17:17:51 -08:00
Leonardo de Moura
768f2642bd
chore: document why alternative Stream design does not work
2021-02-04 17:17:51 -08:00
Leonardo de Moura
5f704b6b6f
chore: fix option name
2021-01-26 18:30:46 -08:00
Leonardo de Moura
d408c835d2
fix: defaultInstance priorities for Neg Int and OfScientific Float
2021-01-25 13:21:07 -08:00
Sebastian Ullrich
446f953461
feat: allow hygienic capture of section variables in quotations
2021-01-24 11:46:04 -08:00
Sebastian Ullrich
0c91b3769e
chore: replace variables in src/
2021-01-22 14:36:05 +01:00
Leonardo de Moura
1f88d66035
feat: add missing instances
2021-01-21 10:35:22 -08:00
Leonardo de Moura
e8401ea6e7
chore: remove old instances
2021-01-20 18:12:35 -08:00
Sebastian Ullrich
79107a2316
feat: copy & store whole ref range in SourceInfo
2021-01-20 16:48:50 +01:00
Sebastian Ullrich
8ad061e328
feat: leanpkg: change print-path to print-paths that also emit LEAN_SRC_PATH (unused as of yet)
2021-01-19 19:06:01 +01:00
Sebastian Ullrich
d7733ba662
feat: use leanpkg print-path for worker initialization
2021-01-19 19:06:01 +01:00
Wojciech Nawrocki
af04c66e22
chore: comment style in Init.String.Basic
2021-01-15 13:29:22 -08:00
Wojciech Nawrocki
f3ab908888
fix: substring APIs
2021-01-15 13:29:22 -08:00
Andrew Kent
4f6bb1feb6
feat: add Float.ofInt
2021-01-15 15:45:28 +01:00
Christian Pehle
225fae9dc2
feat: add shiftLeft and shiftRight for UInt16 and UInt8
...
The same operations are implemented for UInt32, UInt64 and USize
already.
2021-01-14 15:30:35 +01:00
Leonardo de Moura
e2773113a9
feat: add Float.neg and casts
2021-01-13 10:26:45 -08:00
Leonardo de Moura
873634be7e
feat: hierarchical InfoTree
2021-01-09 14:10:11 -08:00
Leonardo de Moura
d0b8dc128b
chore: annotate instance
2020-12-28 17:57:52 -08:00
Leonardo de Moura
539c43e153
fix: typo
...
closes #238
2020-12-28 15:55:25 -08:00
Sebastian Ullrich
1f563695bb
feat: From/ToJson derive handlers
2020-12-26 19:38:24 +01:00
Leonardo de Moura
836fd46d90
feat: add OfNat instance for Fin
2020-12-21 16:38:53 -08:00
Leonardo de Moura
7723953188
chore: use instance (priority := <prio>)
2020-12-21 10:17:54 -08:00
Leonardo de Moura
339a4cf740
chore: remove defaultInstance for ToString
2020-12-19 19:10:42 -08:00
Leonardo de Moura
074259201e
feat: add helper classes for implementing parallel for
...
It is based on an approach suggested by Andrew Kent, and refined by
Sebastian Ullrich.
TODO: expand the the parallel `for`s at `Do.lean`.
2020-12-19 14:15:47 -08:00
Leonardo de Moura
793ffa2f11
feat: add helper class ReprAtom
2020-12-18 14:14:46 -08:00
Leonardo de Moura
b6905f66d6
fix: missing files
2020-12-18 11:47:00 -08:00
Leonardo de Moura
92f0afa424
chore: fix tests
2020-12-18 11:21:30 -08:00
Leonardo de Moura
5f6e66a53f
refactor: Repr
...
Modifications:
- Result type is `Format`
- It takes the context precedence like Haskell `Show`
2020-12-18 11:21:30 -08:00
Leonardo de Moura
2e11c3bdff
feat: dependencies
2020-12-18 11:21:30 -08:00
Leonardo de Moura
40bfafdadb
refactor: dependencies
2020-12-18 11:21:30 -08:00
Leonardo de Moura
15335efae2
refactor: move Format to Init package
...
We are going to use it to define `Repr` class.
2020-12-18 11:21:30 -08:00
Leonardo de Moura
67bcff3bc8
chore: use deriving DecidableEq
2020-12-17 17:48:23 -08:00
Leonardo de Moura
7c865e7bd9
feat: sort instances by priority
2020-12-16 10:45:27 -08:00
Leonardo de Moura
fe08b28c7c
feat: add Array.insertionSort
2020-12-16 10:45:27 -08:00
Leonardo de Moura
5b588b5984
fix: defaultInstance priorities
2020-12-16 06:52:55 -08:00
Leonardo de Moura
42a28261fd
chore: temporarily use 100000 as priority
2020-12-15 20:21:27 -08:00
Leonardo de Moura
731ca49088
chore: cleanup
2020-12-13 15:51:34 -08:00
Leonardo de Moura
04a07c15b9
chore: use deriving Inhabited
2020-12-13 11:57:59 -08:00
Leonardo de Moura
5249fdc24d
chore: cleanup and style
2020-12-12 10:36:26 -08:00
Sebastian Ullrich
554d0b4d4c
chore: adapt stdlib to new antiquotation splices
2020-12-12 17:20:03 +01:00
Leonardo de Moura
76fb1799fe
chore: goodies for deriving command
2020-12-11 18:08:50 -08:00
Sebastian Ullrich
f4267c9bf8
chore: revise Syntax.Traverser changes
2020-12-09 10:38:22 +01:00
Leonardo de Moura
702c258773
fix: index out of bounds
...
@Kha Please take a look at `Traverser` and check whether the
workaround is appropriate or not.
2020-12-08 11:44:10 -08:00
Leonardo de Moura
ebf4a8877e
chore: mark Neg Int as a default instance
2020-12-08 10:09:58 -08:00
Leonardo de Moura
b95c4788c1
refactor: OfDecimal ==> OfScientific
...
`decimalLit` ==> `scientificLit`
2020-12-03 08:08:19 -08:00