Edwin Brady
ad9a2a187f
Fix Char casting
...
For the same behaviour as Idris 1, the primitive cast should return 0 if
the integer is out of bounds. (We should probably drop the Cast
implementation though, since ideally they won't be lossy in general, but
that's an issue for another time...)
All the tests pass in racket now, for me.
2020-05-23 22:19:10 +01:00
Edwin Brady
cff5fc2625
Workaround for byte vectors in Racket
...
Racket appears to have a different notion of current directory than the
system does, so we need to tell it which directory we think we're in
when reading and writing bytevectors using the scheme file functions.
2020-05-23 21:37:31 +01:00
Edwin Brady
e17f66244a
Move network support to libidris2_support
...
This makes the support stuff much simpler, and also makes the racket
bootstrap process easier
2020-05-23 15:52:33 +01:00
Edwin Brady
1524b865c0
Remove needless %cg directives
...
These now refer to an old library file that is no longer used since the
network library was ported to the new FFI
2020-05-23 13:06:39 +01:00
Edwin Brady
c4b8c90687
Merge pull request #111 from err0r500/minusProofsOnNats
...
minus proofs on Nats from Idris1
2020-05-23 12:23:14 +01:00
Niklas Larsson
77df65012c
Fix Path ambiguity
2020-05-23 11:08:25 +02:00
Matthieu JACQUOT
f84850ea36
add minus proofs on Nats from Idris1
2020-05-22 22:39:09 +02:00
Edwin Brady
0958f1fd8b
Keep inlining %tcinlines under let
...
This fixes a productivity issue with map in the parser library
2020-05-22 17:52:20 +01:00
Edwin Brady
17ee7a293a
Merge pull request #92 from ska80/base-clock
...
Move System.Clock from 'contrib' to 'base'
2020-05-21 19:16:55 +01:00
Edwin Brady
bd093e9cba
Propagate totality options on methods
...
As in Idris 1 - if an interface declares a method as total or covering,
then all implementations have to satisfy that.
Temporarily turn off %default directive again, at least until totality
checking works as it should (this is probably better than removing it
from various places because I'll forget to put them back)
2020-05-21 16:04:22 +01:00
Edwin Brady
0f724fbc7f
Report errors on totality check failure
...
This means temporarily removing some '%default total' from the libraries
and tests, since the input for codata checking isn't right yet (it needs
appropriate use of inlining)
2020-05-21 13:08:19 +01:00
Kamil Shakirov
806c993d99
Move System.Clock from 'contrib' to 'base'
2020-05-21 17:00:09 +06:00
Marek L
1a998d8944
Fix typo seperate -> separate in System/Path.idr
...
https://www.grammarly.com/blog/separate-seperate/
2020-05-21 09:28:11 +01:00
Edwin Brady
c98d8a3e55
Merge pull request #88 from ohad/network-ffi
...
libs/network: Port FFI calls from deprecated interface to `%foreign` pragma
2020-05-20 21:44:03 +01:00
Edwin Brady
215ad99308
Merge pull request #86 from andylokandy/just
...
Add a total version of the fromMaybe
2020-05-20 21:41:35 +01:00
Ohad Kammar
1945619db7
libs/network: Port FFI calls from deprecated interface to %foreign
pragma
2020-05-20 20:09:56 +01:00
andylokandy
a51a665668
Reuse foldr1 in foldr1'
2020-05-21 02:35:18 +08:00
andylokandy
5252a7ae3b
Add a total version of the fromMaybe
2020-05-21 02:11:35 +08:00
andylokandy
8de668f1a4
Add folds without default value to List
2020-05-21 02:09:14 +08:00
andylokandy
0d82b5d7da
Add System.Path
2020-05-20 22:51:01 +08:00
Edwin Brady
9eba9113dd
Update racket bootstrap scripts
...
Need to pass the LD_LIBRARY_PATH all the way through or racket doesn't
know where to look. I really don't know why it doesn't work to just set
it at the top level in the script, but it didn't (on my Mac, at least).
2020-05-20 00:03:39 +01:00
Edwin Brady
2569b6e991
Update libraries from upstream
2020-05-19 17:03:18 +01:00
Edwin Brady
aea34ab83e
Merge branch 'master' into fix_win
2020-05-19 16:23:30 +01:00
Edwin Brady
8380a6fa9e
Merge pull request #4 from ska80/refactor-makefiles
...
Refactor makefiles
2020-05-19 16:23:06 +01:00
Edwin Brady
953e8f4913
Merge pull request #3 from ska80/ignore-files
...
Update .gitignore files
2020-05-19 16:22:41 +01:00
Niklas Larsson
efc595394b
Make network test build on windows
...
Add a little to gitignore
2020-05-19 15:46:28 +02:00
Kamil Shakirov
b801b97fcc
Refactor makefiles
2020-05-19 18:50:47 +06:00
Kamil Shakirov
47e943cc7d
Update .gitignore files
2020-05-19 17:49:21 +06:00
Edwin Brady
f749f3e277
Merge pull request #2 from melted/fix_win
...
Windows fixes
2020-05-19 12:30:54 +01:00
Edwin Brady
6bbb914fca
Merge pull request #1 from edwinb/remove-directory-system
...
Add rmDir to System.Directory
2020-05-19 12:24:35 +01:00
Niklas Larsson
1bebd7d070
Windows fixes
2020-05-19 13:13:01 +02:00
Edwin Brady
ede324dc6c
Don't collapse empty lines in 'lines'
...
Now the vim mode works!
2020-05-19 10:47:05 +01:00
André Videla
3321dc6be3
Add rmDir to System.Directory
2020-05-18 18:28:33 +01:00
Edwin Brady
4125b76e90
Add Reflection to base
2020-05-18 16:57:43 +01:00
Edwin Brady
f7b285ec6c
Add paths for install
...
Also remove libraries we aren't using quite yet...
2020-05-18 16:29:18 +01:00
Edwin Brady
dec7dff622
Add libraries
2020-05-18 14:00:08 +01:00