Commit Graph

3735 Commits

Author SHA1 Message Date
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
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
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
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
Mathew Polzin
0ea7c599cb allow buildIdris output to be used as a dependency in other buildIdris calls more directly 2024-06-26 15:23:08 -05:00
Michael Messer
5f27842cbc Public export Decidable.Decidable.decision 2024-06-26 08:24:36 +01:00
Mathew Polzin
7d33c0438a
Nix buildIdris improvement: precisely target executable (#3330)
* don't assume all .so files are the exectuable

* don't rebuild support or the compiler if only the buildIdris nix function has changed

* fixes to nix buildIdris function
2024-06-25 19:03:54 -05:00
Robert Wright
3649821625 Add JSON manipulation functions 2024-06-25 10:37:18 -05:00
Sergey Fedorov
a45c587349 idris_signal: fix static_assert 2024-06-24 11:56:23 -05:00
Sergey Fedorov
a38f1acd2f
idris2.ss: support powerpc (#3326)
* idris2.ss: support powerpc

* CHANGELOG_NEXT: support for macOS PowerPC added

* Chez.idr: support macOS PowerPC

* ChezSep.idr: support macOS PowerPC

* chez/support.ss: support macOS PowerPC

* idris2.rkt: support macOS PowerPC

---------

Co-authored-by: Sergey Fedorov <barracuda@macos-powerpc.org>
2024-06-24 11:49:17 -05:00
Denis Buzdalov
ce2790d6f9 [ perf ] Use alternative better GC on chez 2024-06-24 13:34:21 +01:00
Steve Dunham
1a3df3fb62 [ cleanup ] remove unused code left by previous change 2024-06-19 22:21:27 +01:00
Denis Buzdalov
2994e23fd0
[ fix ] Fix search around %defaulthints (#3258)
* [ cleanup ] Move repeating trying-with-unambiguity pattern to a function

* [ fix #2850 ] Search for dependencies for default hints among all hints

* [ fix #2932 ] Always try defaults in dependencies search
2024-06-18 15:39:22 +01:00
André Videla
ddb691bcdc
Merge pull request #3306 from dunhamsteve/implicitParam
[ fix ] implicits are not in scope under an implicit parameter block
2024-06-17 20:03:37 +01:00
Steve Dunham
f9d00ea63e Update comment to cover changes 2024-06-17 10:37:44 -07:00
Guillaume Allais
0c030020de [ re #3314, #34 ] Tighten the location information for implicits
When implicitly binding a variable, use the location of the head
function/constructor that expects it. This way we can differentiate
multiple implicits bound on the same LHS.

Note that this does not resolve the issue 34: there the location
is then further muddled by the fact that where-bound functions
are lifted to the toplevel.
2024-06-17 16:32:24 +01:00
André Videla
d6b8ab980d
Merge pull request #3315 from andrevidela/fix-3302
Emit error when unbound fixity is hidden
2024-06-17 14:11:44 +01:00
G. Allais
3f985bcefa
[ fix #72 ] remove the broken modules (#3319)
* [ fix #72 ] remove the broken modules

People are still hitting the same issueT
There has been no movement towards fixing it
It is IMO unfixable

Let's drop it.

* [ fix #72 ] Remove dependencies of Control.Algebra

Follow-up to the commit by gallais, this removes the contrib libraries
which were using `Control.Algebra`.

* [ fix #72 ] Record changes in CHANGELOG_NEXT

* [ lint ] Move Algebra changes to existing header

---------

Co-authored-by: Thomas E. Hansen <teh6@st-andrews.ac.uk>
2024-06-17 13:45:16 +01:00
André Videla
02e5468551
Merge pull request #3314 from dunhamsteve/issue-3313
[ fix ] auto search returns no solution instead of ambiguous solution #3313
2024-06-17 12:56:20 +01:00
André Videla
0e09b8d575 Show unrelated namespace with matching operator name 2024-06-17 12:39:37 +01:00
Mathew Polzin
e9dfc1c980
List packages improvements (#3318)
* don't show 'Just' before package versions

* unrelated - fix nix develop shell for darwin

* spit out the package path for each package as well as the package name and version

* put the package path on a new line

* add TTC version info to output

* don't name unused variable

* add changelog entry
2024-06-17 11:50:13 +01:00
J. Rinaldi
ecd6d47ea0 Update typedd.rst 2024-06-17 11:47:16 +01:00
André Videla
f67b303cca Emit error when unbound fixity is hidden 2024-06-16 16:10:47 +01:00
Steve Dunham
1807cdcba7 [ fix ] auto search returns no solution instead of ambiguous solution 2024-06-15 15:01:37 -07:00
J. Rinaldi
866354fef1 Update typedd.rst 2024-06-15 12:19:50 +01:00
Steve Dunham
055568be28 [ fix ] case spliting under implicit/auto parameter 2024-06-13 08:40:33 +01:00