Commit Graph

3762 Commits

Author SHA1 Message Date
mitchmindtree
536c7bff6f
[ refactor ] Add a nix overlay (#3394) 2024-10-01 07:51:34 -05:00
Boyd Stephen Smith Jr.
0e83d6c7c6
Handle multiline comments in Package (ipkg) (#3386) 2024-09-24 10:26:30 -05:00
Steve Dunham
f3dca12a5f
[ doc ] Update gambit docs (#3388) 2024-09-22 01:20:55 -05:00
Mathew Polzin
6d02c52102
make buildIdris nix function still work when there are more than one app directories in the build output. (#3385) 2024-09-14 18:42:53 -05:00
Mathew Polzin
09cb83dd97
[ new ] Support for dumping a package's install location (#3381)
* qol improvements to buildIdris function

* remove env var export that does not have an impact on install process

* Add support for asking the compiler where it will install a package

* allow buildIdris to find C libs installed per Pack standard practice

* Add changelog entry

* add test that exercises new installdir command

* support testing on windows
2024-09-14 14:33:55 -05:00
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