alias __MODULE__ This one looks mysterious at first, but once we break it down, it’s very straightforward. alias allows you to define aliases for the module name, for example: alias Foo.Bar will set up an alias for module Foo.Bar, and you can reference that module with just Bar. __MODULE__ is a compilation environment macros which is the current module name as an atom. Now you know alias __MODULE_