edwinb / Idris2-boot

A dependently typed programming language, a successor to Idris
https://idris-lang.org/
Other
902 stars 58 forks source link

Make a couple improvements for the Racket backend #311

Closed Kaiepi closed 4 years ago

Kaiepi commented 4 years ago

This fixes an error that would get thrown when attempting to use Racket as a backend:

/tmp/tmp.0.tSCpq7Hki.rkt:16:42: exact-floor: unbound identifier
  in: exact-floor
  location...:
   /tmp/tmp.0.tSCpq7Hki.rkt:16:42
  context...:
   do-raise-syntax-error
   for-loop
   [repeats 1 more time]
   finish-bodys
   lambda-clause-expander
   loop
   [repeats 4 more times]
   finish-expanding-body
   for-loop
   finish-bodys
   lambda-clause-expander
   for-loop
   loop
   [repeats 7 more times]
   module-begin-k
   expand-module
   ...

OpenBSD's Racket package is minimal, so packages that are probably included on other platforms aren't included with it, so this also adds documentation for which ones are needed to run Idris 2.

edwinb commented 4 years ago

Thanks! I haven't paid much attention to the Racket back end, except to test any additions to the libraries...