ファイルには、いくつかの関数で定義されたモジュールがあり、モジュール名のプレフィックスなしでシェル~/.iex.exsからそれらの関数を呼び出したいと考えています。iex
使用import SomeModuleしてもうまくいきません。エラーが発生します:
module SomeModule is not loaded but was defined. This happens because you are trying to use a module in the same context it is defined. Try defining the module outside the context that requires it.
でこれを行う方法はあり~/.iex.exsますか?