Commit Graph

3757 Commits

Author SHA1 Message Date
Matthew Mosior
53f448c0db
[ base ] Add atomically function (#3380)
* Adding initial implementation of atomicModifyIORef in Data.IORef.

* Updating chez003 test (IORefs) to add atomicModifyIORef.

* Updating CHANGELOG_NEXT.md.

* Fixing linting in libs/base/Data/IORef.idr.

* Fixing expected and tests/chez/chez003/IORef.idr to more appropriately test atomicModifyIORef functionality.

* Add documentation for libs/base/Data/IORef.idr.

* Clean up atomicModifyIORef in libs/base/Data/IORef.idr.

* Updating atomicModifyIORef implementation to drop codegen check, let client decide this.  Also update test to ensure enough contention to test for true atomicity (thanks to @stefan-hoeck for help with both of these).

* Remove documentation regarding backends other than chez.

* Update libs/base/Data/IORef.idr

Co-authored-by: G. Allais <guillaume.allais@ens-lyon.org>

* Updating CHANGELOG_NEXT.md with new function name, atomically, and updating tests/chez/chez003/IORef.idr to reflect new function.

* Fix linting for libs/base/Data/IORef.idr.

* Update documentation for modifyIORef in libs/base/Data/IORef.idr.

---------

Co-authored-by: G. Allais <guillaume.allais@ens-lyon.org>
2024-09-11 09:18:47 +01:00
Mathew Polzin
7cbe95b99b
include hidden files in artifacts built by CI (#3382) 2024-09-10 21:51:59 -05:00
Mathew Polzin
5459e17265
[fix] include stdio header in readline C code in example so it builds on all systems (#3378) 2024-09-01 08:57:24 -05:00
Stefan Höck
c5f31c9d20
[ codegen ] get rid of artifacts introduced when optimizing IO (#3376)
* [ performance ] constant-fold some more stuff

* [ fix ] dont constant fold delayed stuff

* [ exp ] constant fold newtype and unit

* [ performance ] normalize unnecessary let bindings

* [ test ] adjust test output to new codegen

* [ fix ] fold let body before checking for CLocal

* [ test ] add test case for 3375

* [ fix ] make constant folding actually pass the test

* [ test ] add additional test cases for nested lets

* [ cleanup ] remove redundant test
2024-08-26 11:30:09 +01:00
Denis Buzdalov
2bd88b7d31 [ base ] Implement Foldable and Traversable for Identity 2024-08-20 15:05:07 +01:00
Stefan Höck
60ddcd0e07
[ refactor ] export signal to code conversions (#3373)
* [ refactor ] export signal to code conversions

* [ doc ] add documentation

* [ admin ] update CHANGELOG
2024-08-18 10:45:14 +01:00
Denis Buzdalov
2482ebb432
[ performance ] Implement weak memoisation of lazy values for chez and racket (#2791)
* [ lazy ] Weakly memoise lazy expressions on chez and racket

* [ lazy ] Make weak memoisation to be controlled by codegen directive
2024-08-06 15:24:57 +01:00
Denis Buzdalov
ff7c0fa3c2
[ fix ] Make searching in pairs to not cause ambiguity when there isn't (#3366)
* [ test ] Move wrongly placed test

* [ cleanup ] Remove one unused argument

* [ refactor ] Support normalisation inside the proof modification fun

* [ fix ] Normalise `fst`s and `snd`s and remove duplicates in autosearch
2024-08-06 15:18:59 +01:00
André Videla
d9049e82ff
Merge pull request #3353 from Matthew-Mosior/clean-does-not-remove-generated-docs
Clean removes generated docs
2024-08-06 00:33:42 +01:00
Matthew-Mosior
77d4780985 Cleaning up unnecessary code. 2024-08-04 21:43:16 -04:00
Steve Dunham
4d46c18b5f [ fix ] Report chez failures 2024-08-02 20:05:20 +01:00
Matthew-Mosior
d788e07c32 Removing redundant auxiliary function. 2024-08-01 09:45:03 -04:00
André Videla
b1fff6f919
Merge pull request #3361 from Matthew-Mosior/issue-2766-hint-not-listed-as-a-pragma
`%hint` not listed as a pragma
2024-07-31 16:26:29 +01:00
Matthew Mosior
e2d194ab77
Merge branch 'main' into issue-2766-hint-not-listed-as-a-pragma 2024-07-31 09:24:42 -04:00
André Videla
72241a46ed
Merge pull request #3360 from Matthew-Mosior/issue-3232-init-doesnt-check-the-name-of-a-package
`idris2 --init` doesnt check the name of a package
2024-07-31 09:16:14 +01:00
Matthew-Mosior
6bda3d5746 Fixing code to address comments (inline pattern matching and Either to Maybe). 2024-07-29 10:32:13 -04:00
Matthew-Mosior
063f353a10 Remove unnecessary whitespace. 2024-07-27 18:35:07 -04:00
Matthew-Mosior
ccff608e19 Auxiliary function refactor. 2024-07-27 18:32:59 -04:00
Matthew-Mosior
d99a48b586 Adding files to address issue #2766. 2024-07-26 17:10:17 -04:00
Matthew-Mosior
ba560de6c3 Allowing for an empty package name. 2024-07-26 14:20:51 -04:00
Matthew-Mosior
8e24f12e60 Removing extra trailing whitespace. 2024-07-26 13:14:28 -04:00
Matthew-Mosior
704e80cdce Removing extra whitespace. 2024-07-26 13:11:22 -04:00
Matthew-Mosior
be87320ef3 Removing unnecessary comments. 2024-07-26 13:04:56 -04:00
Matthew-Mosior
d98a3c356e Updating CHANGELOG_NEXT.md. 2024-07-26 13:02:00 -04:00
Matthew-Mosior
9e8e94316d Adding files to address issue #3232. 2024-07-26 12:58:45 -04:00
Matthew-Mosior
5a19a888a0 Prettify documentation. 2024-07-26 09:53:27 -04:00
Guillaume Allais
3f76bfdd6f [ test ] for the perf regression 2024-07-26 14:45:54 +01:00
Guillaume Allais
adf284260b Revert "[ new ] totality checking can look under constructors (#3328)"
This reverts commit 6b9f0f7c69.
2024-07-26 14:45:54 +01:00
Robert Wright
40f3987373 Add fromTTImp, fromName, and fromDecls 2024-07-26 14:24:51 +01:00
Guillaume Allais
fdcd4d941d [ linear ] typo in the docstring 2024-07-26 13:25:52 +01:00
Matthew-Mosior
6e43f9ceea Small refactor. 2024-07-25 17:58:50 -04:00
Matthew-Mosior
cbb1c147a6 Updated CHANGELOG_NEXT.md. 2024-07-25 14:17:40 -04:00
Matthew-Mosior
f510501386 Removing unnecessary line. 2024-07-25 14:14:13 -04:00
Matthew-Mosior
2d4e7ad825 Adding files to address --clean does not remove the generated docs sub issue of issue 1918. 2024-07-25 14:10:39 -04:00
Matthew Mosior
91d0eb3e31
Show module docstring for namespace indexes (#3351)
* Adding files to address issue 3014.

* Fixing indentation in support/docs/default.css.

* [ fix ] li needs to be a direct child of an lu node

Cf. https://validator.w3.org/

* [ css ] prettier output

TODO: add a common.css for these shared parts?

* [ fix ] missing closing brace

* [ lint ] alignment, whitespace

---------

Co-authored-by: Guillaume Allais <guillaume.allais@ens-lyon.org>
2024-07-25 13:18:46 +01:00
Steve Dunham
6b9f0f7c69
[ new ] totality checking can look under constructors (#3328)
* [ total ] Consider (x :: zs) to be smaller than (x :: y :: zs)

* Expand RHS metas in totality checking
2024-07-25 12:51:57 +01:00
Guillaume Allais
1eed6a817d [ fix #1236 ] Already fixed, add test case 2024-07-25 11:23:10 +01:00
Mathew Polzin
a65298e210
Support more flexible requirements for Golden tests (#3349) 2024-07-18 20:02:45 -05:00
Steve Dunham
99c665774c [ fix ] check indentation after = in declarations 2024-07-16 11:07:18 +01:00
André Videla
182bcff0ff
Merge pull request #3348 from joelberkeley/fromrightleft
Add `fromRight` and `fromLeft` for extracting values out of `Either`
2024-07-14 15:21:01 +01:00
Joel Berkeley
3a43c135c8 changelog 2024-07-13 22:59:51 +01:00
Joel Berkeley
0ed19f3630 add fromRight and fromLeft for extracting values out of Either 2024-07-13 22:57:31 +01:00
Mathew Polzin
be2ec7d1fd
Fix annoying warning when running tests on some macOS machines (#3346)
* don't use LC_ALL of C.UTF-8 on macos when testing

* bump version of racket setup action to version using new NodeJS per GitHub's warnings
2024-07-08 09:27:29 +01:00
Sergey Fedorov
1931509c92
idris_support: fix environ for macOS (#3324)
* idris_support: fix environ for macOS

* Add test that touches the new implementation of environ

---------

Co-authored-by: Sergey Fedorov <barracuda@macos-powerpc.org>
Co-authored-by: Mathew Polzin <matt.polzin@gmail.com>
2024-07-03 12:04:22 -05:00
Steve Dunham
efce152178 [ fix ] compile time typecase for functions 2024-07-02 16:38:24 +01:00
Denis Buzdalov
22c25e945e [ fix #3339 ] Set the global test locale 2024-07-02 09:32:13 +01:00
Denis Buzdalov
c5abf4be35 [ cleanup ] Make makeFuture to be %foreign, not %extern 2024-07-02 09:31:23 +01:00
Denis Buzdalov
57f455d135 [ elab ] Change quantity of the search function's argument to 0 2024-06-28 13:09:36 +01:00
Denis Buzdalov
715a304137 [ elab, minor ] Implement Functor for PiInfo 2024-06-27 15:51:32 +01:00
Steve Dunham
f561c78812
Add type annotations to monadic bind #3327 (#3329)
* [ new ] Support type annotations on monadic bind

* don't parse quantites on patbind

* Update changelog
2024-06-27 12:05:40 +01:00