5 votes
533 views
in Technology by 🪄 Spell Caster (1.8k points)
Alright so here is my code:

defmodule Lol do
  def Ha do
    IO.puts "haha"
  end
end
Lol.Ha()

What I'm trying to do is to define a module Lol with function Ha in it. Function Ha should print "haha"

I'm using repl.it

And here is the error

** (SyntaxError) main.exs:9: syntax error before: '('
    (elixir) lib/code.ex:363: Code.require_file/2

1 Answer

0 votes
by 🧙 Wizard (712k points) [mod]
The elixer is that potion in MCSM in Ivor's basement.

Related questions

10 votes
3 answers 664 views
6 votes
8 answers 868 views
6 votes
1 answer 378 views
asked Dec 12, 2024 in Technology by The guy 🪶 Apprentice (680 points)
13 votes
2 answers 983 views
asked Nov 3, 2017 in Other Contests by meow
4 votes
1 answer 473 views
5 votes
2 answers 607 views
9 votes
3 answers 594 views
5 votes
3 answers 1.0k views
8 votes
1 answer 772 views
5 votes
2 answers 674 views
9 votes
6 answers 980 views
23 votes
4 answers 1.1k views
asked Mar 17, 2013 in Technology by reptar 🪄 Spell Caster (4.9k points)
5 votes
1 answer 436 views
asked Apr 28, 2024 in Alpha's Tech Blog by anonymous
15 votes
1 answer 422 views
asked Oct 25, 2018 in Other by LunaLight 💫 Luminary (171k points)
22 votes
3 answers 740 views
asked Oct 5, 2018 in Other by LunaLight 💫 Luminary (171k points)
26 votes
2 answers 765 views
asked Jan 12, 2017 in Today I Learned... by rae 🔥 Spellbinder (114k points)
1 vote
2 answers 214 views
asked Dec 30, 2025 in General Clubs by AustinWasHere 🪞 Light Weaver (88.7k points)
11 votes
6 answers 523 views
asked Jun 5, 2025 in Random Posts by maomaomaomaomao 🌠 Star Seer (910k points)
8 votes
7 answers 657 views
asked Dec 20, 2024 in Debate by Nick ✨ Charmer (10.0k points)
13 votes
13 answers 1.6k views
asked Nov 19, 2024 in Other by dude 🔥 Spellbinder (102k points)
5 votes
2 answers 675 views
14 votes
2 answers 507 views
4 votes
1 answer 577 views
5 votes
3 answers 410 views
8 votes
2 answers 601 views
asked Dec 18, 2021 in Other by Catlover 🌀 Sorcerer (28.4k points)
8 votes
2 answers 563 views
asked Dec 18, 2021 in Other by Catlover 🌀 Sorcerer (28.4k points)
9 votes
3 answers 814 views
asked May 21, 2021 in Polls by Crystal-Arianator 🌀 Sorcerer (38.9k points)
6 votes
2 answers 1.1k views
8 votes
2 answers 622 views
16 votes
3 answers 594 views
15 votes
1 answer 595 views
13 votes
10 answers 635 views
16 votes
1 answer 318 views
asked Nov 4, 2018 in Other by -GEMHeart- 🌟 Mystic (357k points)
7 votes
4 answers 336 views
asked May 25, 2025 in Technology by Spirit_Null ⚗️ Conjurer (18.8k points)
12 votes
4 answers 786 views
asked Sep 17, 2016 in Technology by anonymous
5 votes
2 answers 399 views
6 votes
2 answers 218 views
asked Sep 23, 2025 in Other by GravityCentered 🌟 Mystic (252k points)
...