leostera / caramel

:candy: a functional language for building type-safe, scalable, and maintainable applications
https://caramel.run
Apache License 2.0
1.05k stars 25 forks source link

fix(compiler): allow to run directly from bin directory #87

Closed michallepicki closed 3 years ago

michallepicki commented 3 years ago

Before:

~/.opam/default/bin$ cat main.ml
let main _ = Io.format "~s~n" ["Hello World"]
~/.opam/default/bin$ ./caramel compile main.ml 
Unbound module Beam

After:

~/.opam/default/bin$ ./caramel compile main.ml 
Compiling main.erl      OK