Idris2/libs/prelude
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
..
Prelude Refactor %builtin (#1803) 2021-08-03 14:19:17 +01:00
Builtin.idr [ new ] Add FromChar and FromDouble interfaces to the prelude (#1641) 2021-06-29 08:37:02 +01:00
Makefile [ new ] --install-with-src; refactoring around FCs (#1450) 2021-06-05 12:53:22 +01:00
Prelude.idr [ typo ] Enum -> Range (#1099) 2021-02-22 10:05:08 +00:00
prelude.ipkg Update version numbers 2021-06-23 16:15:21 +01:00
PrimIO.idr [ refactor ] JS backend overhaul (#1609) 2021-07-10 11:15:21 +01:00