Nick Drozd
488b4709f4
Use map for some maybes ( #1548 )
2021-06-14 17:52:43 +01:00
Robert Wright
1875f62248
Remove freeBuffer function
...
Each backend is now responsible for freeing Buffers in the same way as other objects
2021-06-14 15:06:44 +01:00
Robert Wright
c6a5827319
Add RefC readBufferData/writeBufferData support
2021-06-14 15:06:44 +01:00
Robert Wright
d202139171
Distinguish common C and RefC Buffer functions
2021-06-14 15:06:44 +01:00
Robert Wright
c63f25dac2
Distinguish common C and RefC FFI calls
2021-06-14 15:06:44 +01:00
Mathew Polzin
0209cee41a
include the other definition of drop because both are quite useful.
2021-06-14 11:44:38 +01:00
Mathew Polzin
bdd8f4157b
Add drop for Vect.
2021-06-14 11:44:38 +01:00
Nick Drozd
4a0a5759b8
Return Maybe from strengthen ( #1540 )
...
Co-authored-by: Fabián Heredia Montiel <303897+fabianhjr@users.noreply.github.com>
2021-06-14 10:59:49 +01:00
Denis Buzdalov
bf0985602f
[ totality ] More %default total
stuff
2021-06-12 21:06:08 -05:00
Fabián Heredia Montiel
dad4dcdaf8
Add totality annotations to src
and libs/{prelude, base}
2021-06-12 21:06:08 -05:00
Ruslan Feizerakhmanov
7aee7c9b7c
[ new ] --install-with-src
; refactoring around FC
s ( #1450 )
...
Why:
* To implement robust cross-project go-to-definition in LSP
i.e you can jump to definition of any global name coming
from library dependencies, as well as from the local project files.
What it does:
* Modify `FC`s to carry `ModuleIdent` for .idr sources,
file name for .ipkg sources or nothing for interactive runs.
* Add `--install-with-src` to install the source code alongside
the ttc binaries. The source is installed into the same directory
as the corresponding ttc file. Installed sources are made read-only.
* As we install the sources pinned to the related ttc files we gain
the versioning of sources for free.
2021-06-05 12:53:22 +01:00
madman-bob
98d67499db
RefC Integer Support ( #1480 )
...
* Add utility functions to treat All as a heterogeneous container
* Distinguish RefC Int and Bits types
* Change RefC Integers to be arbitrary precision
* Add RefC Bits maths operations
* Make RefC div and mod Euclidean
* Add RefC bit-ops tests
* Add RefC integer comparison tests
* Add RefC IntN support
2021-06-03 10:44:42 +01:00
Zoe Stafford
24f7c9d5be
Add foldMap
to Foldable
( #1483 )
2021-06-01 15:05:04 +01:00
Fabián Heredia Montiel
30c178c815
[ feature ] Implement -Werror
(WarningsAsErrors) ( #1466 )
...
Co-authored-by: Guillaume ALLAIS <guillaume.allais@ens-lyon.org>
2021-05-27 09:23:20 +01:00
G. Allais
1fd5ccf080
[ fix #1453 ] rename cast -> coerce ( #1468 )
2021-05-26 08:12:58 +01:00
Mathew Polzin
a0a417240e
Simple signal handling ( #1458 )
2021-05-25 16:45:46 +01:00
stefan-hoeck
e293d82577
[ fix ] System.getArgs on node backend
2021-05-25 13:26:42 +01:00
Robert Wright
cd3906645b
Add RefC getArgs support
2021-05-20 14:25:16 +01:00
Robert Wright
f3aae06b28
Add RefC Clock support
2021-05-20 14:25:16 +01:00
Robert Wright
cf2b05ce02
Add RefC Buffer support
2021-05-20 14:25:16 +01:00
Robert Wright
2a957a38d9
Add RefC FFI header file support
2021-05-20 14:25:16 +01:00
Ohad Kammar
618c71477e
[ close #1384 ] built-in Snoc-lists [< 1, 2, 3 ] ( #1383 )
2021-05-20 12:56:25 +01:00
Stefan Höck
66f3787cb7
[ cleanup ] Annotate JS backend sources ( #1425 )
2021-05-18 12:37:51 +01:00
G. Allais
349308396c
[ fix #621 ] add warnings for shadowed global definition ( #1407 )
2021-05-14 17:35:21 +01:00
Edwin Brady
c87a6d52bb
Merge pull request #1400 from edwinb/tweak-cg
...
Some compilation/code generation improvements
2021-05-14 16:09:09 +01:00
Denis Buzdalov
5b246eda53
[ totality ] Make Language.Reflection
modules have %default total
2021-05-13 17:38:31 +01:00
Edwin Brady
f21a495711
Merge github.com:idris-lang/Idris2 into tweak-cg
2021-05-11 11:37:12 +01:00
G. Allais
ab241213f3
[ breaking ] making toList part of Foldable ( #1395 )
2021-05-11 08:26:00 +01:00
Denis Buzdalov
8038f0a0f9
[ refactoring ] Tiny changes following up the idris-lang/Idris2#830
...
Some zeroes in signatures, one simpler implementation and formatting.
2021-05-10 09:07:36 +01:00
Ohad Kammar
e58bcfc7ef
Semantic highlighting ( #1335 )
...
Co-authored-by: Guillaume ALLAIS <guillaume.allais@ens-lyon.org>
2021-05-10 09:05:43 +01:00
Edwin Brady
c54c1a6e97
Add some inlines
...
We should really get these automatically, but until we do, add the
flags. Chez seems to spot these anyway, but again it makes the generated
code easier to look at, and it removes some needless abstraction over
interfaces at runtime.
2021-05-09 17:31:44 +01:00
Edwin Brady
587f73a256
Make documentation from Makefile
...
The documentation is now also linked from
https://www.idris-lang.org/pages/documentation.html
and https://www.idris-lang.org/pages/idris-2-documentation.html
2021-05-01 17:09:25 +01:00
Edwin Brady
7f7b11ed54
Use transforms for fastPack/fastUnpack
...
We've had these for a while, used for interface specialisation, but
they're not yet used anywhere else or properly documented. We should
document them soon, but for now, it's a useful performance boost to
always use the fast versions of pack/unpack/concat at runtime.
Also moves a couple to the prelude, to ensure that the fast versions are
defined in the same place as the 'normal' version so that the
transformation will always fire (that is, no need to import Data.String
for the transformation to work).
2021-04-29 23:17:29 +01:00
stefan-hoeck
0858c26dcf
[ refactor ] renamed value to runConst
2021-04-25 10:41:36 +01:00
stefan-hoeck
7863636490
[ new ] add Contravariant interface
2021-04-25 10:41:36 +01:00
stefan-hoeck
047fdb50dd
[ new ] missing Identity implementations
2021-04-25 10:41:36 +01:00
stefan-hoeck
cb7add2eca
[ new ] add Const applicative functor
2021-04-25 10:41:36 +01:00
Ruslan Feizerakhmanov
70158b9dd1
REPL commands: load-package & fuzzy-search ( #1318 )
...
REPL commands: load-package & fuzzy-search
Move REPL-related code over to its own namespace
2021-04-25 09:13:55 +01:00
Ohad Kammar
9a445f57e6
[base] Minor: change the order of terms in the IntegerView ( #1327 )
2021-04-23 14:52:44 +01:00
Denis Buzdalov
583442b359
[ contrib ] Arithmetic on Fin ( #830 )
...
Co-authored-by: Guillaume ALLAIS <guillaume.allais@ens-lyon.org>
2021-04-23 12:05:13 +01:00
arty
48dc732788
[ base ] Not (a == b)
implies not a == b
( #1315 )
2021-04-22 13:16:26 +01:00
Tung Alissa
1bf46bc458
[ REPL ] Improving :doc (fixity, totality, colours) ( #1316 )
...
Co-authored-by: Guillaume ALLAIS <guillaume.allais@ens-lyon.org>
2021-04-21 09:39:18 +01:00
Niklas Larsson
473b8ee740
Windows test fixes
...
Translate node error codes
Strip 'b' from flags
Simplify directory wrangling in chez016
2021-04-12 18:47:57 +02:00
Niklas Larsson
b32a2593ff
Node fixes
...
Don't assume that errno exists. There might never have been an error.
Quote executable path to handle path with spaces.
2021-04-12 16:43:54 +02:00
Niklas Larsson
bb59efa395
Merge pull request #1269 from melted/fix_arg_prims
...
Replace prim__getArgs with prim__getArgsCount and prim__getArg
2021-04-11 09:40:56 +02:00
Stefan Höck
61c43e5337
[ new ] Add Bifoldable and Bitraversable interfaces to Prelude ( #1265 )
2021-04-08 17:25:37 +01:00
Guillaume ALLAIS
23b67d18ab
[ lint ] remove trailing whitespace
2021-04-07 16:33:59 +01:00
Niklas Larsson
084997a880
Replace prim__getArgs with prim__getArgsCount and prim__getArg
...
This spares us from having to build Idris data structures in the foreign
code.
2021-04-03 10:45:02 +02:00
Guillaume ALLAIS
5af1efb56e
[ refactor ] introduce NonZero
...
This has a much better behaviour with respect to proof search and
the coverage checker realising we don't need to consider the Z case
than the `Not (x = Z)` we used earlier.
2021-03-31 17:59:58 +01:00
Guillaume ALLAIS
09d8e25441
[ refactor ] more efficient implementation of range
2021-03-30 10:51:56 +01:00