On line 86 of the generated Graphics.hx, the following line causes a compile failure in Haxe:
@:overload(function (default: DefaultShader, ?options: lua.Table<Dynamic, Dynamic>): Shader {})
default is a reserved keyword to describe getter/setter behavior and switch statement fallback in Haxe. Easiest solution to this would be to generate a different argument name, changing it to _default solved the issue for me.