carp-lang / Carp

A statically typed lisp, without a GC, for real-time applications.
Apache License 2.0
5.47k stars 173 forks source link

feat: add fputc wrapper to IO #1417

Closed scolsen closed 2 years ago

scolsen commented 2 years ago

fputc is a low-level function that writes a single C character to a file. We can use this as a basis for more elegant APIs.

The signature matches that of the C standard library function for compatibility, which takes an Int instead of a char. However, the documentation notes that the int argument is converted to an unsigned char.

scolsen commented 2 years ago

Looks like the Linux and MacOS CI errors were transient errors related to downloading GHC