We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I noticed that I have forgot to add the putChar and getChar primitives.
putChar
getChar
They are available in the Prelude.IO module as %foreign primitives: https://github.com/chrrasmussen/Idris2-Erlang/blob/master/idris2/libs/prelude/Prelude/IO.idr#L63-L66
Prelude.IO
%foreign
The implementation would go here: https://github.com/chrrasmussen/Idris2-Erlang/blob/master/idris2/src/Compiler/Erlang/Codegen/NamedCExpToErlExpr.idr#L492-L498, and would be similar to the existing prim__putStr and prim__getStr.
prim__putStr
prim__getStr
In the Erlang code generator, Char represents a grapheme (and not just a codepoint), which means these functions should handle any Unicode character.
Char
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I noticed that I have forgot to add the
putChar
andgetChar
primitives.They are available in the
Prelude.IO
module as%foreign
primitives: https://github.com/chrrasmussen/Idris2-Erlang/blob/master/idris2/libs/prelude/Prelude/IO.idr#L63-L66The implementation would go here: https://github.com/chrrasmussen/Idris2-Erlang/blob/master/idris2/src/Compiler/Erlang/Codegen/NamedCExpToErlExpr.idr#L492-L498, and would be similar to the existing
prim__putStr
andprim__getStr
.In the Erlang code generator,
Char
represents a grapheme (and not just a codepoint), which means these functions should handle any Unicode character.The text was updated successfully, but these errors were encountered: