Then compile it with `elixirc file.ex`. Start IEX shell in the same dir and try calling a function in Elixir. I guess it's a special case that `Elixir == :"Elixir"`, therefore the Elixir.Elixir.beam file in the current directory is ignored. The error message is not very pretty though.
iex(1)> Elixir.hi
=ERROR REPORT==== 31-Mar-2014::18:14:57 ===
Loading of /Users/alco/Documents/git/elixir/bin/../lib/elixir/ebin/Elixir.beam failed: badfile
=ERROR REPORT==== 31-Mar-2014::18:14:57 ===
beam/beam_load.c(1249): Error loading module 'Elixir':
module name in object code is elixir
=ERROR REPORT==== 31-Mar-2014::18:14:57 ===
Loading of /Users/alco/Documents/git/elixir/bin/../lib/elixir/ebin/Elixir.beam failed: badfile
=ERROR REPORT==== 31-Mar-2014::18:14:57 ===
beam/beam_load.c(1249): Error loading module 'Elixir':
module name in object code is elixir
** (UndefinedFunctionError) undefined function: Elixir.hi/0
Elixir.hi()
--
Best regards
Alexei Sholik