Thanks for the comment. I'm sorry to say that I've not gone much further on this so I actually can't help you with your issue. I'm excited by Gleam but I'm still trying to figure out how to fit it into my projects.
I asked on the Elixir Forum Gleam thread about further interop between Phoenix, Ecto & Gleam but lpil, the Gleam creator, suggests that this might be quite hard due to Elixir macros. I'm keen to explore more but I haven't found the time.
Thanks for the comment. I'm sorry to say that I've not gone much further on this so I actually can't help you with your issue. I'm excited by Gleam but I'm still trying to figure out how to fit it into my projects.
I asked on the Elixir Forum Gleam thread about further interop between Phoenix, Ecto & Gleam but lpil, the Gleam creator, suggests that this might be quite hard due to Elixir macros. I'm keen to explore more but I haven't found the time.
OK - thanks for the reply! I'll let you know if I find out more myself.
I contributed a fix to Gleam that means it now finds gleam source for dependencies in a mix project github.com/gleam-lang/gleam/pull/596
Also instead of defining your own compiler module an alias will do
aliases: ["compile.gleam": "cmd gleam build"]
I put a working example here github.com/midas-framework/elixir_...
Great! Works perfectly. Thanks Peter!
There is now. github.com/gleam-lang/mix_gleam
Which should work even better.
I've also updated the elixir with gleam example