Stefan Hoeck
f721281bdc
[ re #1043 ] Fix typo in support.scm ( #1047 )
2021-02-10 01:00:42 +00:00
stefan-hoeck
f50b22548f
tests for bitops
2021-02-08 15:47:23 +00:00
stefan-hoeck
1104776430
fix 1037
2021-02-08 15:47:23 +00:00
Wen Kokke
bd683938bf
Overhaul of concurrency primitives ( #968 )
...
Co-authored-by: Guillaume ALLAIS <guillaume.allais@ens-lyon.org>
2021-02-05 16:16:20 +00:00
GustavoMF31
7f495999bd
Make :typeat a useful command ( #998 )
...
Co-authored-by: Guillaume ALLAIS <guillaume.allais@ens-lyon.org>
2021-02-05 16:15:40 +00:00
Guillaume ALLAIS
5720d1c691
[ fix #1023 ] Hexadecimal literals can be pretty big
2021-02-04 13:22:55 +00:00
G. Allais
d709082fc7
[ fix #835 ] Keep names of implicit variables in with clauses ( #1017 )
2021-02-03 16:16:11 +00:00
André Videla
ab9d1e68ce
Merge pull request #999 from andylokandy/rawstring
...
Add support for raw strings
2021-02-03 01:02:45 +00:00
vfrinken
d04b28b62d
Update stringOps.c ( #848 )
...
Co-authored-by: Guillaume ALLAIS <guillaume.allais@ens-lyon.org>
2021-02-02 14:01:19 +00:00
Andy Lok
4ceccaf00c
Support raw string
...
Add wrap on file end
use rust-style raw string syntax
use swift style syntax raw string
Update src/Parser/Support.idr
Co-authored-by: André Videla <andre.videla@gmail.com>
Escape line wrap
Resolve conflict
2021-02-02 19:37:53 +08:00
Denis Buzdalov
d076bcd649
Double closing brace was made to not be treated specially.
2021-02-02 11:27:34 +00:00
Michael Messer
05c9029b35
Fix REPL execExp and fix "it" ( #908 )
2021-01-27 23:14:41 +00:00
Johann Rudloff
043336ba5c
[ fix #959 ] ES Codegen: Add casts from integer types to double
...
A new test is included to verify the cases mentioned in the original
issue.
2021-01-21 12:28:40 +00:00
Nicolas A. Schmidt
61761f4c27
Don't add implicits after non-given explicits. ( #918 )
2021-01-20 19:13:07 +00:00
G. Allais
47d345f67a
[ fix #954 ] Allow RF names for interface methods ( #956 )
2021-01-19 20:50:47 +00:00
Fabián Heredia Montiel
932ded4207
Split Idris Test Pool
2021-01-19 18:40:35 +00:00
Edwin Brady
fec03ea598
Merge pull request #902 from mattpolzin/scratch-work-search-repl
...
Interactive & REPL :search feature
2021-01-16 14:11:41 +00:00
Fabián Heredia Montiel
d712ea288a
Implement Racket Futures Support
2021-01-15 18:58:51 +00:00
Edwin Brady
3621c5d1bd
Merge pull request #879 from edwinb/no-linearity-subtyping
...
Remove linearity subtyping
2021-01-12 12:33:26 +00:00
Mathew Polzin
2b58434b6e
Add test for type search
2021-01-03 13:35:58 -08:00
Michael Messer
709b97c2d7
Add it to REPL ( #887 )
...
Co-authored-by: Michael Messer <michaelmesser@users.noreply.github.com>
2020-12-29 23:52:03 +00:00
Edwin Brady
ad632d825d
Remove linearity subtyping
...
It's disappointing to have to do this, but I think necessary because
various issue reports have shown it to be unsound (at least as far as
inference goes) and, at the very least, confusing. This patch brings us
back to the basic rules of QTT.
On the one hand, this makes the 1 multiplicity less useful, because it
means we can't flag arguments as being used exactly once which would be
useful for optimisation purposes as well as precision in the type. On
the other hand, it removes some complexity (and a hack) from
unification, and has the advantage of being correct! Also, I still
consider the 1 multiplicity an experiment.
We can still do interesting things like protocol state tracking, which
is my primary motivation at least.
Ideally, if the 1 multiplicity is going to be more generall useful,
we'll need some kind of way of doing multiplicity polymorphism in the
future. I don't think subtyping is the way (I've pretty much always come
to regret adding some form of subtyping).
Fixes #73 (and maybe some others).
2020-12-27 19:58:35 +00:00
Edwin Brady
69f3c23cbb
Treat local hints differently in auto search
...
Local hints need to reduce (just like global hints do) so we expand
their definition to the lifted name before applying them.
We're identifying the global hints by knowing that the binder name is a
nested function name. This is a bit of hack, and it'd probably be better
to record that information in the binder instead, but that's a more
substantial change than I want to do right now.
2020-12-27 13:41:48 +00:00
Edwin Brady
6c9ad81c12
Add missing test
...
:# ../../../src/Compiler/.ANF.idr.swp
2020-12-14 13:38:40 +00:00
G. Allais
3f6b99e979
[ fix #657 ] RigCount for interface parameters ( #808 )
2020-12-11 11:58:26 +00:00
Guillaume ALLAIS
4025896572
[ fix #833 , #677 ] bound variables start with a lowercase letter
2020-12-10 18:01:14 +00:00
Nicolas A. Schmidt
ef6cbcf658
Auto-implicit __con
now added before implicits. ( #659 )
2020-12-07 11:41:47 +00:00
Denis Buzdalov
b3542d66fc
Have lambda-case available everywhere lambda is ( #819 )
2020-12-07 11:34:48 +00:00
Edwin Brady
778d6026e5
Merge pull request #607 from Russoul/record-init
...
New syntax for named applications and "record" updates
2020-12-04 11:35:05 +00:00
Fabián Heredia Montiel
57a8ef4609
Implement Futures as a Parallelism Primitive ( #753 )
...
Co-authored-by: Christian Rasmussen <christian.rasmussen@me.com>
2020-12-04 10:58:26 +00:00
russoul
46519237cd
Merge
2020-12-03 15:28:20 +03:00
G. Allais
502f544d73
[ fix #775 ] integerToNat is not, in fact, id ( #799 )
2020-11-27 18:48:19 +00:00
Giuseppe Lomurno
c82e2393d4
Test templates ( #585 )
...
Co-authored-by: Guillaume ALLAIS <guillaume.allais@ens-lyon.org>
2020-11-27 15:40:02 +00:00
Yu Zhang
08a35d694c
Improving error messages ( #786 )
...
Co-authored-by: Guillaume ALLAIS <guillaume.allais@ens-lyon.org>
2020-11-26 11:35:55 +00:00
Denis Buzdalov
9990b5ad29
Namespaces were shadowed in all standard codegens.
...
This allows, for exmaple, to have apostrophes in module names.
Test was added only for chez, however this should be viable for all
targets with `:exec` implemented.
2020-11-26 11:17:36 +00:00
Guillaume ALLAIS
22bfa90971
[ fix ] recoverability criteria
...
If the "can't convert" error arises from a mismatch between a type
constructor and a primitive value, it is not recoverable.
2020-11-11 19:10:34 +00:00
Jan de Muijnck-Hughes
de58c66ab2
Make Idris2 test harness available for the many and not the few. ( #719 )
...
Co-authored-by: Guillaume ALLAIS <guillaume.allais@ens-lyon.org>
2020-10-19 09:26:23 +01:00
Guillaume ALLAIS
14d0141ca2
[ fix #735 ] Make sure type constructors are fully applied
2020-10-16 14:44:11 +01:00
Guillaume ALLAIS
7192ef28a3
[ test ] add IDRIS2_TESTS_CG env variable
2020-10-16 14:44:11 +01:00
russoul
fd90141ed9
Merge branch 'master' of https://github.com/idris-lang/Idris2 into master
2020-10-12 17:36:45 +03:00
G. Allais
5e85446e9c
[ fix #724 ] Typo in the magic string ( #726 )
2020-10-03 14:39:13 +01:00
russoul
98bfff4a27
Merge branch 'master' of https://github.com/idris-lang/Idris2 into master
2020-10-03 11:51:48 +03:00
G. Allais
4a61146ba0
[ fix #705 ] Normalise primitives in mkPat ( #718 )
...
[ log ] prettier log for pats & clauses
[ re #650 ] Even lazier
[ fix #705 ] normalise primitives in mkPat
[ refactor ] introduce getPrimitiveNames
2020-10-02 12:22:57 +01:00
russoul
b57b28a64e
Implement new application syntax
...
Add syntax for bind-all-explicits
Add new record update syntax
Remove PInstance
2020-10-01 12:43:43 +03:00
Rodrigo B. de Oliveira
a7cf1143b6
Make NmLet
names unique in Compiler.ES.Imperative
...
Since the imperative form has no nesting of scopes.
Fixes #643
2020-09-30 13:43:59 +01:00
russoul
af62955e07
Merge branch 'master' of https://github.com/idris-lang/Idris2 into master
2020-09-29 12:58:28 +03:00
G. Allais
3df1f9c476
[ fix #63 ] interleaving let binders and local declarations ( #691 )
2020-09-28 13:15:22 +01:00
Guillaume ALLAIS
416b9578e5
[ fix #37 ] Use filename if we already know it
2020-09-24 15:56:23 +01:00
Guillaume ALLAIS
621a9202ed
[ test ] making sure cast works
2020-09-23 19:48:58 +01:00
G. Allais
d105dd11a7
[ breaking ] remove List1 related ambiguities ( #690 )
2020-09-22 15:07:40 +01:00