Jason Dagit
50c5be30d7
RefC: add test for issue1778
2022-01-20 14:10:57 +00:00
Zoe Stafford
5e42bbfcc9
Merge pull request #2274 from octeep/main
...
make readBufferData return the number of bytes that have been read
2022-01-20 13:11:13 +00:00
Robert Wright
d85016b64d
Add Fin modular arithmetic Num instance
2022-01-20 10:13:20 +00:00
Mathew Polzin
e7ed760016
[ new ] optional language version field to ipkg files. ( #2256 )
2022-01-20 10:05:53 +00:00
MarcelineVQ
6d10ca09b4
[ base ] add Show for Ordering
2022-01-19 22:12:36 +00:00
octeep
f7bcd1f0b2
make readBufferData return the number of bytes that have been read
2022-01-19 17:35:14 +00:00
Robert Wright
76d1936fad
Add Singleton type
2022-01-19 14:22:40 +00:00
Mathew Polzin
4220c644cf
Add a few missing NodeJS FFI functions to System
( #2271 )
...
* support for system command via node backend.
* Add env var set/unset
* fix env unset function
* Update libs/base/System.idr
* modify system test to cover node and chez.
* Add base tests for env get/set
2022-01-18 22:43:03 -08:00
Edwin Brady
26a47ddafe
Make prim_js2idris_array iterative ( #2267 )
...
I was getting a stack overflow on the tailrec002 test, caused by this
primitive being recursive. I've made it iterative. I'm no JS expert but
I've tested its behaviour against the old version.
2022-01-16 19:15:26 +00:00
Vincent de Haan
3a38424e69
Minor fix in documentation
2022-01-11 22:36:22 +01:00
Jason Dagit
1d7207fe05
[ fix #2202 ] Use SnocList in parser state to avoid quadratic slowdown ( #2203 )
...
Co-authored-by: Guillaume Allais <guillaume.allais@ens-lyon.org>
2022-01-11 16:06:19 +00:00
Steven Dunham
e8660cab97
[ tests ] Add test case for #2243
2022-01-07 21:53:46 -08:00
Jason Dagit
78ff2059f3
system_info_os001: Add all the OSs that System.Info.os knows about
2021-12-25 21:52:21 -08:00
alissa-tung
158cb1c75e
[ nodejs ] pid
2021-12-22 22:25:21 +08:00
Ohad Kammar
3c532ea35d
[ refactor ] IDE protocol as a separate module hierarchy ( #2171 )
2021-12-16 22:09:00 +00:00
Denis Buzdalov
a09c5082c5
[ base ] Use Fin n
as index in Bits
( #2192 )
2021-12-16 18:26:52 +00:00
teggot
d3aed0404c
[ fix #1959 ] use modern record update syntax ( #2196 )
2021-12-16 18:23:18 +00:00
Balazs Komuves
3463adbc48
[ fix #2032 ] Slow typechecking on Int
operation when Data.Fin.fromInteger
is in scope ( #2189 )
2021-12-13 13:47:53 +00:00
Balazs Komuves
6cc20a9974
[ fix #2138 ] Add an %unhide pragma ( #2181 )
...
* add %unhide pragma
* add a test case
* clean up
* more consistent English usage (+fix some typos)
* add a warning for unhiding not-already-hidden names
* move `unhide` (and `hide`) to the bottom of the source file to avoid having to forward-declare `recordWarning`
2021-12-11 18:03:36 -08:00
Balazs Komuves
c3ec522077
[ fix #1404 ] Totality annotation for data type definitions ( #2179 )
...
Co-authored-by: G. Allais <guillaume.allais@ens-lyon.org>
Co-authored-by: stefan-hoeck <hock@zhaw.ch>
2021-12-08 16:08:26 +00:00
Balazs Komuves
e511bc6884
[ fix #2098 ] Allow unclosed comment blocks ( #2173 )
2021-12-07 15:46:38 +00:00
Balazs Komuves
5e775aaa41
[ fix #1945 ] Add default
support for record fields ( #2175 )
2021-12-06 21:21:42 +00:00
Balazs Komuves
3f3912e934
[ fix #2065 ] Use postfix projections if prefix ones are off ( #2169 )
2021-12-06 18:14:13 +00:00
Guillaume ALLAIS
32140f577f
[ fix ] resugaring of snoc lists
2021-12-02 12:49:07 +00:00
G. Allais
059f74ad0b
[ fix #1861 ] rewrite_impl is linear ( #2150 )
2021-11-25 17:07:05 +00:00
Guillaume ALLAIS
500df117c1
[ fix #1741 ] Do not replace names in as-patterns
2021-11-25 16:04:44 +00:00
Guillaume ALLAIS
56e599de9c
[ re #1987 ] test case
2021-11-25 15:12:54 +00:00
Guillaume ALLAIS
8e8988ff5a
[ re #1191 ] test case
2021-11-24 21:15:43 +00:00
Guillaume ALLAIS
662f1eabc5
[ re #215 ] test case
2021-11-24 20:28:07 +00:00
Guillaume ALLAIS
63bf9f2900
[ re #1852 ] Partial fix without the Hole UN refactoring
2021-11-24 10:54:32 +00:00
Denis Buzdalov
ab3862798b
[ fix ] Use right reflection constructor name for unambiguing with
2021-11-23 16:42:51 +00:00
claymager
283f9bd00f
[ fix ] Forbid "." as namespace identifier ( #2134 )
2021-11-22 12:13:08 +00:00
Guillaume ALLAIS
0bc18bd34a
[ fix #2072 ] correctly handle fixity in printer
2021-11-19 17:42:07 +00:00
Guillaume ALLAIS
f99b875d7e
[ fix #2095 ] error on duplicated updates
2021-11-19 16:30:35 +00:00
G. Allais
489e8c7cbc
[ re #2038 ] doc for reserved symbols ( #2126 )
2021-11-18 18:13:20 +00:00
Mathew Polzin
0eba4c691e
Add %deprecate pragma ( #2086 )
2021-11-17 10:41:03 +00:00
André Videla
cc45ff957a
Merge pull request #2085 from andrevidela/string-parser-position
...
Show the line and column in diagnostic message in String.Parser
2021-11-15 11:09:57 +00:00
Mathew Polzin
d2ce85ea05
Merge pull request #2096 from madman-bob/system-run
...
Add the `System` `run` function
2021-11-10 08:58:39 -08:00
Robert Wright
2ee10d9b34
Add Alternating List odds and evens functions
2021-11-10 08:40:25 +00:00
André Videla
9e6678e3d3
Merge pull request #2102 from madman-bob/list-singleton
...
Add List singleton function
2021-11-10 00:46:40 +00:00
André Videla
7f932036e9
Show the line and column in diagnostic message
...
This also updates the error message of some common combinators
2021-11-10 00:44:09 +00:00
Zoe Stafford
3063218d46
[ new ] Add %nomangle
( #2063 )
...
This is (for once) not a breaking changes, instead backends will need to opt in to this change, using the utilities in Compiler.NoMangle. See the js backend for an example of how to do this.
This is the first step to being able to use idris to create libraries usable by other languages.
2021-11-09 16:23:50 +00:00
Edwin Brady
2f6ec76223
Get information about names in reflection ( #2110 )
...
* Only normalise a search goal if it's fast
While we do end up normalising it anyway on success, there might be
things blocking it that make the intermediate terms very big, so only do
it speculatively to see if it's quick.
* Get information about names in reflection
Currently this is only whether it's a function, or data or type
constructor. I expect more may be useful/possible.
2021-11-07 15:06:53 +00:00
Robert Wright
921bc24a2a
Add List singleton function
2021-11-05 16:08:54 +00:00
Robert Wright
4732486bbc
Add System run function
2021-11-05 11:59:17 +00:00
Robert Wright
dc47df688c
Add System.File fRead function
2021-11-05 11:59:17 +00:00
Robert Wright
c1fc487bec
Return error code from pclose
2021-11-05 11:59:17 +00:00
Robert Wright
c964f8d8bc
Add System escapeCmd function
2021-11-05 11:59:17 +00:00
G. Allais
668c221474
[ re #2032 ] faster version of fromInteger ( #2090 )
2021-11-02 17:43:01 +00:00
G. Allais
15cc8243f7
[ re #2001 ] Make some prelude interfaces total ( #2083 )
...
The prelude interfaces that have default definitions for all of
their fields are declared total so that users are forced to think
about meeting the minimal requirements for an implementation to be
valid.
2021-11-02 15:34:52 +00:00