Idris2/libs/base
Zoe Stafford 1669fc351b
Refactor %builtin (#1803)
* Stub for future 'identity' optimisation
I plan to add this later, but I'm using for now for
NaturalToInteger and IntegerToNatural

* Refactor `%builtin`
fixes #1799

- automatically optimise all Natural shaped things
- NaturalToInteger and IntegerToNatural now use
  new `Identity` flag (internal use only for now)
  which signals the function is identity at runtime

* Use NaturalToInteger and IntegerToNatural for Nat and Fin
Also define show fin in terms of finToInteger, for speed

* Fix name handling for %builtin

* [ tests ] fixes + #1799

* remove %builtin from libs
Add back after next version

* Use resolved names where convenient
2021-08-03 14:19:17 +01:00
..
Control [ cleanup ] various public export & cleanup 2021-07-27 09:06:20 +01:00
Data Refactor %builtin (#1803) 2021-08-03 14:19:17 +01:00
Debug Add totality annotations to src and libs/{prelude, base} 2021-06-12 21:06:08 -05:00
Decidable Use Not instead of -> Void (#1667) 2021-07-13 15:32:01 +01:00
Language [ fix ] Name in Language.Reflection.TT 2021-07-16 20:05:49 +01:00
System Merge pull request #1736 from stepancheg/test-discovery 2021-07-22 08:56:02 +00:00
base.ipkg System.Errno.strerror 2021-07-13 10:34:04 +01:00
Makefile [ new ] --install-with-src; refactoring around FCs (#1450) 2021-06-05 12:53:22 +01:00
System.idr Merge pull request #1638 from stepancheg/idris2-time 2021-07-16 09:40:08 +01:00