Denis Buzdalov
6815aefbe0
[ elab ] Implement file operations, e.g. applicable for type providers
2023-10-13 13:26:46 +01:00
0xd34df00d
32b639ca3c
[ base ] Prove anyToFin
preserves the property witnessed by Any
2023-10-09 15:03:55 +01:00
0xd34df00d
8d5caaa137
[ base ] Add anyToFin
converting a Vect's Any
to its index
2023-10-09 15:03:55 +01:00
Denis Buzdalov
1256ded110
[ elab ] Implement Ord
for Count
2023-10-04 16:31:38 +01:00
Denis Buzdalov
6dc06cd67d
[ base ] Add update functions to sorted maps
2023-09-23 22:47:05 +01:00
G. Allais
c52b029986
[ new ] function options for case blocks ( #3062 )
2023-09-01 11:35:52 +01:00
Aleksei Volkov
af7ba2fa67
[ ttc ] Compare modification time with nanosecond precision ( #3046 )
2023-08-31 11:55:57 +01:00
Denis Buzdalov
a4ccb27c83
[ base ] Add lists' infix-by functions, complementary to existing ones
2023-08-28 13:53:59 +01:00
russoul
ebbae42c85
Add uncons' to base; rewrite head' and tail' in terms of uncons'
2023-08-23 11:04:23 +01:00
Steve Dunham
badf1e98c8
[ base ] Make foldr1 and foldr1By public
2023-08-07 08:10:35 +01:00
Robert Wright
3c61471da3
Erase additional PreorderReasoning arguments
2023-08-04 13:37:46 +01:00
Steve Dunham
b481994bef
[ fix ] Fixes build broken by #3021
2023-08-01 08:01:12 +01:00
scarf
c7abb148e8
feat: even and odd for Nat and Integral ( #3021 )
2023-07-31 08:36:40 +01:00
Saransh Chopra
4fcb0fb4a7
Remove decideLTE
( #3031 )
2023-07-27 08:04:24 +01:00
André Videla
a39bfc6ce3
Merge branch 'main' into constant_fin
2023-07-18 23:46:07 +09:00
Steve Dunham
8d7791ba55
[ base ] Add getTermCols and getTermLines to base library and fix pri… ( #3009 )
2023-07-18 09:42:47 -05:00
scarf
388d217757
docs: typo in list difference documentation ( #3018 )
2023-07-16 10:39:36 -05:00
Katarzyna Marek
5fd5b1e732
improvement: use std lib WellFounded
for Sufficient
2023-07-05 16:44:07 +01:00
CodingCellist
18e887389f
[ papers ] Port the first part of "Deferring the details [...]" by Liam O'Connor ( #2974 )
...
Co-authored-by: Guillaume Allais <guillaume.allais@ens-lyon.org>
2023-07-05 16:42:58 +01:00
Robert Wright
754f6af55c
Add orBothFalse proof
2023-07-05 16:36:55 +01:00
Robert Wright
af3c5fd454
Generalize Prelude proof helpers
2023-07-05 16:36:09 +01:00
stefan-hoeck
c1a5be9b5b
[ performance ] make Eq and Ord for Fin run in constant time
2023-07-05 15:58:41 +02:00
Denis Buzdalov
5dcf62499d
[ elab ] Make elab scripts be able to record warnings ( #2999 )
2023-06-19 16:34:19 +01:00
Denis Buzdalov
91b7aafb74
[ base ] Add generalisations of min
and max
for StronglyConnex
2023-05-15 19:15:36 +03:00
Aleksei Volkov
298f91cf0a
[ base ] Implemented Ord
for Name
, Namespace
and UserName
( #2973 )
2023-05-15 14:45:42 +01:00
Denis Buzdalov
c285ef06dd
[ re #2960 ] Move defs of closures data types to a separate module
2023-05-11 15:31:45 +01:00
Robert Wright
9bfa04921a
Add symmetric and transitive closure relations
2023-05-08 11:53:21 +01:00
madman-bob
a00b7ee7ec
Public export TTImp reflection functions ( #2947 )
...
Co-authored-by: Thomas E. Hansen <teh6@st-andrews.ac.uk>
Co-authored-by: Ohad Kammar <ohad.kammar@gmail.com>
2023-05-05 10:33:32 +01:00
stefan-hoeck
bc1a51ea18
[ regression ] revert to previous implementation of Show
2023-05-02 11:23:14 +02:00
stefan-hoeck
83f5ef27b6
[ new ] Eq, Ord, Semigroup, and Monoid for All
2023-05-02 11:23:14 +02:00
Steve Dunham
9544162bc4
[ new ] Add support for bi-directional pipes on POSIX systems ( resolves #2935 ) ( #2944 )
2023-04-15 09:39:17 -05:00
Denis Buzdalov
cf63ee2ef2
[ base ] Add extraction functions to Data.Singleton
2023-03-28 11:29:09 +01:00
Robert Wright
fb956802ab
Add Elem get and lookup functions
2023-03-23 19:36:20 +00:00
Steve Dunham
081938bad8
[ base ] Add support for unbuffered stdin
2023-03-07 13:28:25 -08:00
CodingCellist
7972c6acbd
[ new ] Implement bit-rotation operators ( #2903 )
...
* [ new ] Implement bit-rotation operators
Whereas `shiftR` and `shiftL` throw bits off the edge, the `rotR` and
`rotL` operations wrap the bits around to the start of the bit-stream.
* [ test ] visualise bit patterns instead
* [ fix ] print bit patterns the right way around
---------
Co-authored-by: Guillaume Allais <guillaume.allais@ens-lyon.org>
2023-03-04 14:41:54 +00:00
CodingCellist
ba24892e2f
[ new ] Couple of useful things for Vect ( #2904 )
...
Co-authored-by: Ohad Kammar <ohad.kammar@ed.ac.uk>
Co-authored-by: André Videla <andre.videla@gmail.com>
Co-authored-by: Guillaume Allais <guillaume.allais@ens-lyon.org>
2023-03-03 15:58:44 +00:00
Ohad Kammar
1ea1cbeede
Refactor Data.Nat to use preorder reasoning to improve readability
2023-03-03 15:45:31 +00:00
G. Allais
310a8f12cd
[ new ] missing buffer primitives ( #2893 )
2023-02-26 17:50:52 +00:00
crisoagf
7f9db70e15
Add PreorderReasoning comforts ( #2778 )
...
* Add PreorderReasoning comforts
* Drop interface approach in favour of computation
* Update libs/base/Syntax/PreorderReasoning.idr
---------
Co-authored-by: Cristóvão Gomes Ferreira <crisoagf@melo-gibson>
Co-authored-by: Ohad Kammar <ohad.kammar@gmail.com>
Co-authored-by: Guillaume Allais <guillaume.allais@ens-lyon.org>
CI integration co-authored-by: @stefan-hoeck
2023-02-17 17:47:54 +00:00
Stefan Höck
b543daf5ab
[ contrib ] move SortedMap and SortedSet to base ( #2884 )
2023-02-16 11:02:43 -06:00
Mathew Polzin
ad12f8335c
[ new ] popen
/pclose
for the NodeJS backend. ( #2857 )
...
* implement popen and pclose (to an extent) for NodeJS
* bring node020 back into tests.
* ah, I see what was being done here. Fix the idris for the test.
* fix test's unreachable clause warning
* fix expectation
* Add note to CHANGELOG
* small tweaks to get popen into merge-ready state.
2023-01-30 09:38:42 -06:00
Denis Buzdalov
bbe96929f1
[ minor, base ] Relax requirement of the These.bifold
2023-01-26 22:15:15 +00:00
G. Allais
ea4a4c0f85
[ base ] fix the definition of die ( #2854 )
2023-01-19 11:09:28 +00:00
Mathew Polzin
24ac56de88
Moving Data.List.HasLength into base ( #2844 )
2023-01-16 00:07:21 -06:00
Mathew Polzin
4005b40a95
[new] Vect.Quantifiers.All QoL ( #2843 )
...
* Add Show for Vect.All
* Add an alias for HVect to Data.Vect.Quantifiers.All
* Add a few utilities for Vect.Quantifiers.All to make it more at home in listy uses.
* Add CHANGELOG entries.
2023-01-09 00:57:00 -06:00
Zoe Stafford
ae2d4efc17
add javascript support to System.Clock
...
This may behave incorrectly when used with web workers
2022-12-22 11:47:44 +00:00
Zoe Stafford
18ffb852de
export {to,from}Nano
in System.Clock
...
also rename some arguments and add docs
2022-12-21 15:49:32 +00:00
Denis Buzdalov
f4ebcadfad
[ base ] Add forgetting conversions of Vect.Quantifiers
2022-12-20 16:36:27 +00:00
G. Allais
2f55a3ef8a
[ fix ] elaboration of records' telescopes of parameters ( #2816 )
2022-12-15 17:55:50 +00:00
Denis Buzdalov
ff6afb0c59
[ minor ] Make NotBothZero
parameter of standard gcd
to be erased
2022-12-05 15:10:16 +00:00
0xd34df00d
c6a8c9e7a7
[ base ] Move the worker outside of the Vect's reverse
definition
2022-11-21 10:52:47 +00:00
Tim Engler
bff18428b4
Added seqL to Control.App and updated docs to fix #2761
...
Also updated test real002 to use the actual Control.App from
libs/base/Control/App.idr. Before it was using a different version that
existed within its test directory, tests/idris2/real002/Control/App.idr
2022-11-21 10:39:43 +00:00
Hattori, Hiroki
5c9f8e36a1
[ RefC ] Add 16 and 32 bit access to base/Data.Buffer . ( #2609 )
...
* Fix symbom mangling
* Revert "Fix symbom mangling"
This reverts commit 6481e80155
.
* Fix typo
* [RefC] Add missed prims of setBuffer* .
* [ fix ] formatting
* [ re #2609 ] Use 'UInt' instead of 'Word'
More descriptive/to the point / Less assumed knowledge.
There are no *LE suffixes for UInt8, since endianness is to do with
multiple bytes and UInt8 is a single one.
Co-authored-by: Guillaume Allais <guillaume.allais@ens-lyon.org>
Co-authored-by: Thomas E. Hansen <teh6@st-andrews.ac.uk>
2022-11-15 12:15:06 +01:00
CodingCellist
70ef197cf6
[ base ] Deprecate setByte in favour of setBits8 ( #2764 )
...
* [ base ] Deprecate setByte in favour of setBits8
Deprecate getByte; fix Core.Binary.Prims
Along with `setByte`, the `getByte` function should similarly be
deprecated since it also assumes the value will have the given size,
rather than guaranteeing it in the type.
CI highlighted some required changes in `Core.Binary.Prims` thanks to
`-Werror`. The fix was to add some `cast` calls where the old `getByte`
and `setByte` used to be.
The RefC buffer test will need updating once we remove the functions
completely. Added a note for future peeps.
2022-11-15 10:42:07 +01:00
Robert Wright
b2c42280bb
Erase Fin fromInteger upper bound
2022-11-11 15:34:58 +00:00
stefan-hoeck
6f5b19c389
[ cleanup ] bifoldMap already in Prelude
2022-11-03 14:11:15 +00:00
G. Allais
4cd38a8c5d
[ new ] deriving Show ( #2741 )
2022-11-02 11:57:07 +00:00
Edwin Brady
e125c9014f
Prepare release 0.6.0 ( #2733 )
...
* Prepare release 0.6.0
* Fix bootstrap chez
* Correct version in bootstrap chez
2022-10-27 16:32:16 +01:00
Stefan Höck
57c589ca80
[ performance ] More stack safety in the Prelude ( #2704 )
2022-10-26 09:54:53 +01:00
Aleksei Volkov
c906720ee3
[ base ] Change Reader
to fix search for MonadReader
instance ( #2729 )
2022-10-22 19:13:52 +01:00
Zoe Stafford
138452273c
Merge pull request #2701 from stefan-hoeck/snocfold
...
[ performance ] efficient foldr and foldMap for SnocList
2022-10-04 12:52:39 +01:00
stefan-hoeck
0e956249cc
[ performance ] efficient foldr and foldMap for SnocList
2022-10-04 12:19:32 +02:00
Sam Phillips
ba34b64c68
Remove note about differing behavior
2022-10-04 10:24:27 +02:00
0xd34df00d
c2dd824c58
[ base ] Implement Uninhabited for impossible Pointwise equalities
2022-10-02 21:41:26 +01:00
hilary888
9eaff9f728
Fix typo in documentation string
2022-09-30 22:35:36 +01:00
Stefan Höck
7eebeff905
[ fix ] natToFinLt is O(n) ( #2689 )
2022-09-29 14:36:32 +01:00
stefan-hoeck
de216d3ced
[ fix ] drop first command-line arg on node
2022-09-27 08:19:14 +02:00
G. Allais
81ea363ae8
[ base ] deriving Traversable ( #2678 )
2022-09-24 12:43:49 +01:00
Guillaume Allais
5631608782
[ base ] deriving Foldable
2022-09-24 10:20:25 +01:00
Denis Buzdalov
ac9e03d7e3
[ base ] Add a variant of System.run
allowing processing on the fly
2022-09-22 14:01:03 +01:00
wwww
38db7c3d22
[ fix ] showTime pads nanoseconds properly ( #2650 )
2022-09-22 12:18:26 +01:00
Joel Berkeley
c0153e72cd
[ base ] implement decEq
for SnocList
( #2630 )
...
Co-authored-by: Guillaume Allais <guillaume.allais@ens-lyon.org>
2022-09-20 15:46:15 +01:00
G. Allais
55926f30c5
[ fix #2655 ] Add support for DataOpts in records ( #2658 )
2022-09-14 14:57:04 +01:00
0xd34df00d
b3c80e0765
[ base ] Add finToNatEqualityAsPointwise, an inverse of finToNatQuotient
2022-09-05 12:45:28 +01:00
Denis Buzdalov
5266a2bc22
[ base ] Implement MonadError ()
for MaybeT
2022-09-01 10:48:15 +01:00
Guillaume Allais
6891490ed2
[ fix ] support for implicits in Deriving.Functor
...
A lot of refactoring to bring these. That's hopefully the last
feature that was needed...
2022-08-29 18:35:24 +01:00
Zoe Stafford
86c060ef13
Reimplement %nomangle in terms of %export ( #2604 )
...
* Reimplement %nomangle in terms of %export
Also deprecate %nomangle
* [ lint ] fix linter errors
2022-08-15 13:26:06 +01:00
Guillaume Allais
4672305fc3
[ fix ] more filtering of invalid datatypes
2022-08-13 11:29:19 +01:00
Steve Dunham
e29e2289e7
[ fix ] Fixes memory leaks in currentDir, fGetLine, and fGetChars ( #2606 )
2022-08-10 21:23:53 +01:00
G. Allais
0cbbf97b79
[ new ] extend Deriving.Functor to (non-strictly) positive functors ( #2591 )
2022-07-18 14:10:46 +01:00
Mathew Polzin
4a348c1f95
Public export remaining function to allow for proofs involving parsing numbers.
2022-07-18 14:10:05 +01:00
ProofOfKeags
68a144bf18
Support System.Signal for node backend ( #2556 )
...
* first pass at signal support for node backend
* change signal values to int's
* implements defaultSignal
* return -1 as expected by calling API if any error is raised by nodejs runtime
* finishes signal support for nodejs
* extract repetitive foreign import identifiers
* fix comments
2022-07-10 10:18:58 +01:00
Guillaume Allais
8b20da7e39
[ cleanup ] remove TT from base
...
As discussed with edwin, let's get rid of the external TT type.
There is no way to get your hands on a TT value anyway so this
should not change anything.
2022-07-07 16:42:19 +01:00
Denis Buzdalov
c03a39789f
[ breaking ] Make arguments of runRWST
like in other transformers
...
Put the `RWST` argument to be the last one. This makes such functions
to be easier used in point-free compositions and to be easily
interchangeable with existing `runStateT`-like functions.
2022-07-07 15:19:41 +01:00
G. Allais
4874bf2114
[ fix ] handle implicit arguments in Deriving.Functor ( #2572 )
2022-07-07 09:55:13 +01:00
Guillaume Allais
7db20d38a3
[ cleanup ] Fewer assert_total in deriving Functor
2022-07-04 12:03:49 +01:00
G. Allais
aeeb338e6c
[ new ] deriving Functor ( #2568 )
2022-07-04 08:58:18 +01:00
Jeroen de Haas
ea7e43ad74
[doc] Remove implicit argument in documentation for parseDouble
2022-07-03 22:00:31 +01:00
Denis Buzdalov
38caff23b8
[ fix ] Make the result Show
of case .. of
compilable
...
1. The arrow was fixed
2. Put explicit type ascription into a comment
3. Don't print type when it was not present in the expression
2022-06-27 15:32:02 +01:00
Denis Buzdalov
afaa80a5ae
[ re #2533 ] Fix printing of lazy values in Show TTImp
2022-06-27 15:32:02 +01:00
G. Allais
4024857d20
[ base ] Various Language.Reflection
improvements ( #2554 )
2022-06-22 13:07:27 +01:00
Denis Buzdalov
e856569d16
[ doc ] Clarify the doc comment of find*
functions of SnocList
2022-06-20 12:13:37 +01:00
Denis Buzdalov
113085d0c3
[ base ] Add a function for changing the topmost FC
of a TTImp
2022-06-17 19:53:07 +01:00
Denis Buzdalov
bc838467a3
[ base ] Add a function returning Dec
for So
2022-06-17 19:52:35 +01:00
Denis Buzdalov
a7fb6722a0
[ re #2533 ] Fix recently added reflection's Show
( #2543 )
2022-06-16 11:08:51 +01:00
Denis Buzdalov
df6f4f69cd
[ doc ] Add clarification to the doc of a function of Elaboration
2022-06-16 09:49:56 +01:00
Guillaume Allais
cd324f9ff3
[ base ] Name convenience functions
2022-06-14 16:07:37 +01:00
Guillaume Allais
c9dbc3d743
[ new ] Show implementations for Language.Reflection
2022-06-14 16:07:37 +01:00
Guillaume Allais
381441d849
[ base ] maximum is an upper bound
2022-06-14 16:07:37 +01:00
Guillaume Allais
a8fe4a778c
[ base ] Show for Constants
2022-06-14 16:07:37 +01:00