I've got a simple module in a new project:
external fn puts(String) -> Nil =
"Elixir.IO" "puts"
pub fn main() {
"hello, world"
|> puts
}
However, when I run it via gleam run, i see the following:
$ gleam run
Compiling stuff
Compiled in 0.26s
Running stuff.main
exception error: undefined function 'Elixir.IO':puts/1%
What have I do incorrectly?