Guillaume ALLAIS
2df49ebdd4
[ fix #1224 ] moduleIdent must be capitalised
2021-03-25 15:59:46 +00:00
Guillaume ALLAIS
00929deed6
[ cosmetic ] nicer error messages for uncaught exceptions
2021-03-25 15:59:46 +00:00
Denis Buzdalov
8abd60535b
[ fix ] Ability for data types to be operators was restored
2021-03-25 14:16:47 +00:00
G. Allais
97fb5d7b94
[ fix #893 ] proof gadget for with clauses ( #1222 )
2021-03-25 10:02:06 +00:00
G. Allais
21f2913527
[ fix #710 ] Enforce assumptions about capitalised idents ( #1207 )
...
Given we keep getting tripped up by this, here we go:
* Namespaces
* Data names
* Record names
* Data constructor names (except for operators)
* Record constructor names (except for operators)
* Interface constructor names (except for operators)
2021-03-22 13:22:52 +00:00
Guillaume ALLAIS
f600182999
[ close #31 ] test case for the issue
2021-03-18 10:38:48 +00:00
G. Allais
f959987a51
[ fix #834 ] Fix implicitsAs for local definitions ( #1199 )
2021-03-17 10:54:25 +00:00
André Videla
405c266b5e
[ refactor ] Multiline error report ( #1155 )
2021-03-16 14:10:45 +00:00
Stefan Höck
591797ebaf
[ new ] Support overloaded floating point literals ( #1177 )
2021-03-16 14:08:50 +00:00
Guillaume ALLAIS
80f8a0f8fe
[ re #1185 ] add threads
option to test runner
2021-03-16 14:03:46 +00:00
CodingCellist
89a84a34a4
Patch CVs and sleep
in Racket ( #1059 )
2021-03-15 13:43:12 +00:00
Stefan Höck
1784593abb
[ new ] Applicative and Monad for Pair ( #1188 )
2021-03-15 13:42:04 +00:00
Matúš Tejiščák
f4a790ded4
Identify prefix and postfix record projections ( #1183 )
...
`.proj` and `proj` are identically defined but separate functions.
This patch fixes it by defining `.proj` only once, and adding `proj = (.proj)`
for every projection.
2021-03-15 13:40:13 +00:00
Raoul Hidalgo Charman
3e85e23638
Namespace checks for resugaring ( #1161 )
...
This avoids resugaring to the wrong type when there are user defined
symbols which conflicts with builtins such as Pair.
Changed the test linear002 which was relying on this behaviour for a
user defined Unit.
Fixes #634 .
2021-03-15 13:34:54 +00:00
Michael Messer
d08c0c78b3
Change :doc to use PTerm instead of Name ( #1178 )
2021-03-12 09:46:46 +00:00
Edwin Brady
17cdc7fa88
Merge pull request #1171 from edwinb/fix1163
...
Correct multiplicities when checking Pi binders
2021-03-09 18:36:08 +00:00
Mathew Polzin
06586d401a
Add a test package to the Idris 2 project ( #1162 )
2021-03-09 18:27:05 +00:00
Edwin Brady
04a0f5001f
Correct multiplicities when checking Pi binders
...
We've always just used 0, which isn't correct if the function is going
to be used in a runtime pattern match. Now calculate correctly so that
we're explicit about which type level variables are used at runtime.
This might cause some programs to fail to compile, if they use functions
that calculate Pi types. The solution is to make those functions
explicitly 0 multiplicity. If that doesn't work, you may have been
accidentally trying to use compile-time only data at run time!
Fixes #1163
2021-03-09 17:23:05 +00:00
Ruslan Feizerahmanov
50c60185a7
[ auto ] Ignore hidden names in Core.Context.getSearchData ( #1143 )
...
Co-authored-by: Guillaume ALLAIS <guillaume.allais@ens-lyon.org>
2021-03-09 14:13:29 +00:00
Stefan Höck
8d4321eb9a
Add Data.Bits to base ( #1033 )
2021-03-04 20:59:56 +00:00
Stefan Höck
4c7d0db4bc
[ fix #1148 ] Support hyphenated package names ( #1151 )
2021-03-04 19:09:15 +00:00
Edwin Brady
c9de4d9f9f
Remove more trailing whitespace
2021-03-03 14:36:33 +00:00
Edwin Brady
6a29fab245
Remove trailing whitespace in tests
...
Keep the linter happy
2021-03-03 13:55:30 +00:00
Edwin Brady
6887a5f95f
Record local hints in delayed elaborators
...
We might not have set up search problems yet when delaying an
elaborator, so we need to know what the local hints were at the point of
delay.
2021-03-03 13:49:32 +00:00
Edwin Brady
a00fc25109
Merge pull request #1146 from edwinb/fix1140
...
Check current holes only at end of elaboration
2021-03-01 20:51:46 +00:00
Edwin Brady
1d965627c9
Check current holes only at end of elaboration
...
Fixes #1140 - when checking holes were solved, we checked all of them,
but there may still be some open if there's a local definition.
2021-03-01 19:11:15 +00:00
G. Allais
cee7e38894
[ new ] Proof search from 'Applications of Applicative Proof Search' ( #1093 )
2021-03-01 08:29:43 +00:00
Edwin Brady
37cc095f7a
Merge github.com:idris-lang/Idris2 into versions
2021-02-27 18:00:18 +00:00
Edwin Brady
1d8166b1b2
Version number constraints in 'depends' field
...
Now reporting an error if we can't find a package that satisfies the
constraints. The version number field can still be a string (as it used
to be) but will give a deprecation warning - and the old style version
string wasn't used anyway.
Version constraints can have an upper and/or lower bound, which can be
inclusive or not.
2021-02-27 17:58:52 +00:00
André Videla
aa27ccbdb6
Merge pull request #1097 from andylokandy/multiline
...
Implement multi-line string
2021-02-26 21:50:54 +00:00
G. Allais
59de5f1326
[ fix #762 ] Different case tree building strategy ( #1125 )
2021-02-26 09:33:07 +00:00
Andy Lok
01c5011653
improve error report
2021-02-25 20:14:26 +08:00
Andy Lok
5fed5c2b7a
Merge branch 'master' of https://github.com/idris-lang/Idris2 into multiline
2021-02-25 19:52:42 +08:00
Andy Lok
8c23f5944b
address comment
2021-02-25 18:43:42 +08:00
G. Allais
fcd834c423
[ fix #110 ] Check the LHS' head is not shadowed ( #1121 )
2021-02-25 08:51:27 +00:00
Guillaume ALLAIS
da88b80481
[ fix #794 ] missing cases in recoverable
2021-02-24 20:25:04 +00:00
G. Allais
d2eeb7ce86
[ fix #758 ] desugar non-binding sequencing in do blocks to (>>) ( #1095 )
2021-02-24 11:07:16 +00:00
Denis Buzdalov
95af3cf4be
More compose instances and one usage of them ( #1089 )
2021-02-23 10:53:43 +00:00
Guillaume ALLAIS
00067e8151
[ fix #637 ] force indentation after a with
2021-02-23 10:52:22 +00:00
G. Allais
c10c1d65a5
[ fix #1022 ] detect more impossible cases ( #1108 )
2021-02-23 10:51:38 +00:00
Andy Lok
775d7b4bdb
Add test for escaping NL
2021-02-23 13:10:36 +08:00
Andy Lok
2358ac0f73
Fix StrError12 test
2021-02-23 02:10:57 +08:00
Guillaume ALLAIS
741960f0d1
[ test ] case for #484
...
This issue was fixed by #1081
2021-02-22 16:04:04 +00:00
G. Allais
30d402ed7f
[ fix #899 ] Be careful when generating an impossible LHS ( #1081 )
2021-02-22 09:53:30 +00:00
Mathew Polzin
c3a42966e7
fix indentation in Golden so that prompt happens after both paths under expected and actual outputs don't match.
2021-02-22 09:39:57 +00:00
Andy Lok
83ab4f0f15
Fix lint
2021-02-21 03:13:13 +08:00
Andy Lok
07eb6fda47
Allow hashtag escape for multi-line string
2021-02-21 03:11:01 +08:00
Andy Lok
22a769e6b5
Implement multiline string
2021-02-20 18:05:26 +08:00
Guillaume ALLAIS
7ccc47712e
[ re #1087 ] Better error messages in the REPL
...
(as well as in type signatures now that I know how to do that)
2021-02-19 12:34:19 +00:00
Andy Lok
26464357c1
Implement interpolated string ( #1056 )
2021-02-18 13:07:22 +00:00
Mathew Polzin
9f8a8b5d76
Add a total way of reading files in. ( #1070 )
2021-02-18 11:13:25 +00:00
Stefan Hoeck
7401961425
[ new ] Bitwise XOR for Bits64 and Integer ( #1026 )
2021-02-16 15:14:56 +00:00
Guillaume ALLAIS
059074fe14
[ test ] fix test suite output
2021-02-15 10:35:46 +00:00
Andy Lok
ed7ee4a57b
Show more codes in error report
2021-02-15 10:35:46 +00:00
G. Allais
301324b9b3
[ fix #1043 ] throw error if compileExpr failed ( #1052 )
...
Also adding a CI target testing the gambit backend.
2021-02-15 10:35:46 +00:00
Z-snails
5384560009
[ new ] support record projections in refc backend ( #1054 )
2021-02-15 10:35:46 +00:00
Andy Lok
5cd7642991
Small improve
...
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
2021-02-12 14:01:12 +08:00
Andy Lok
99687976f4
Improve parse error report
...
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
2021-02-12 01:16:40 +08:00
Andy Lok
b04ebe8cf1
Let lexer recognise grouping
...
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
2021-02-10 23:33:25 +08:00
Stefan Hoeck
f721281bdc
[ re #1043 ] Fix typo in support.scm ( #1047 )
2021-02-10 01:00:42 +00:00
Ohad Kammar
891b2d667a
[ fix ] All the REPL commands should be in CommandTable ( #1036 )
...
Co-authored-by: Ohad Kammar <ohad.kammar@ed.ac.uk>
2021-02-08 17:25:49 +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
G. Allais
d9e0841245
[ contrib ] support for C backend ( #1015 )
2021-02-02 15:31:30 +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
Edwin Brady
f2da5b4a46
Local hints shouldn't be accessible globally
...
We can't just assume that a hint added in an empty environment is a
global hint, because a top level definition might still have no local
variables.
2021-01-30 13:30:44 +00:00
Michael Messer
05c9029b35
Fix REPL execExp and fix "it" ( #908 )
2021-01-27 23:14:41 +00:00
Andy Lok
5b367da2c9
[ refactor ] Rename Data.Strings to Data.String (1/2) ( #987 )
2021-01-27 19:18:34 +00:00
Stiopa Koltsov
901a15e8f8
Move Cast interface to Prelude.Cast
...
Extract 200 lines file from 1000 lines `Prelude/Types.idr`. To
make code more discoverable.
2021-01-27 18:31:43 +00:00
stefan-hoeck
606bc577b5
fixed whitespace for *.sh
2021-01-22 15:08:49 +00:00
stefan-hoeck
721cc3162c
adjusted source positions in failing tests
2021-01-22 15:08:49 +00:00
stefan-hoeck
8b96614454
fixed whitespace for *.c and *.h files
2021-01-22 15:08:49 +00:00
stefan-hoeck
a52fbfb096
fixed whitespace for *.idr,*.ipkg,*.tex,*.yaff, and *.lidr
2021-01-22 15:08:49 +00:00
mapf0ld
e15b1f0c78
[ refactor ] ltrim in terms of asList ( #894 )
...
Co-authored-by: Guillaume ALLAIS <guillaume.allais@ens-lyon.org>
2021-01-22 15:07:23 +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
Stefan Hoeck
fb08004041
removed trailing whitespace ( #955 )
2021-01-21 11:33:03 +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
b0e0bf17d4
Add time to windows runs due to flaky tests.
2021-01-19 18:40:35 +00:00
Fabián Heredia Montiel
932ded4207
Split Idris Test Pool
2021-01-19 18:40:35 +00:00
Fabián Heredia Montiel
a23871e57e
Execute tests concurrently
2021-01-19 18:40:35 +00:00
Edwin Brady
9f906bed81
Update test output
...
This was changed due to the recent multiplicity update.
2021-01-16 17:09:02 +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
Stiopa Koltsov
b76c9d91e0
Remove trailing whitespaces and add trailing newlines
2021-01-16 10:00:03 +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
Edwin Brady
fe602caa2c
Merge pull request #765 from ShinKage/ide-mode
...
IDEMode syntax option and fixed output
2021-01-12 10:39:44 +00:00
André Videla
e99a9b0c84
Merge pull request #901 from andrevidela/fold-count
...
Add count and foldMap to prelude
2021-01-06 19:29:50 +00:00
André Videla
28c4d1e3bb
Add count and foldMap to prelude
2021-01-05 21:59:01 +00:00
Mathew Polzin
2b58434b6e
Add test for type search
2021-01-03 13:35:58 -08:00
Jesse Ira Abadilla
372df16726
test: Change function definitions in "Generic.idr".
2021-01-01 14:44:53 +00: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