5 votes
434 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 (691k points) [mod]
The elixer is that potion in MCSM in Ivor's basement.

Related questions

11 votes
3 answers 518 views
6 votes
8 answers 691 views
6 votes
1 answer 243 views
asked Dec 12, 2024 in Technology by The guy 🪶 Apprentice (680 points)
13 votes
2 answers 855 views
asked Nov 3, 2017 in Other Contests by meow
4 votes
1 answer 364 views
6 votes
2 answers 528 views
9 votes
3 answers 491 views
6 votes
3 answers 844 views
8 votes
1 answer 648 views
5 votes
2 answers 550 views
9 votes
6 answers 800 views
24 votes
4 answers 994 views
asked Mar 17, 2013 in Technology by reptar 🪄 Spell Caster (4.9k points)
6 votes
1 answer 326 views
asked Apr 28, 2024 in Alpha's Tech Blog by anonymous
15 votes
1 answer 393 views
asked Oct 25, 2018 in Other by LunaLight 💫 Luminary (171k points)
22 votes
3 answers 604 views
asked Oct 5, 2018 in Other by LunaLight 💫 Luminary (171k points)
27 votes
2 answers 619 views
asked Jan 12, 2017 in Today I Learned... by rae 🔥 Spellbinder (114k points)
10 votes
4 answers 207 views
1 vote
2 answers 179 views
asked Dec 30, 2025 in General Clubs by AustinWasHere 🪞 Light Weaver (88.0k points)
12 votes
7 answers 353 views
asked Jun 5, 2025 in Random Posts by Ixe 🌠 Star Seer (899k points)
8 votes
7 answers 470 views
asked Dec 20, 2024 in Debate by Nick 🃏 Illusionist (10.1k points)
13 votes
13 answers 1.3k views
asked Nov 19, 2024 in Other by dude 🔥 Spellbinder (103k points)
4 votes
3 answers 564 views
5 votes
2 answers 553 views
14 votes
2 answers 400 views
4 votes
1 answer 451 views
5 votes
3 answers 357 views
9 votes
2 answers 491 views
asked Dec 18, 2021 in Other by Catlover 🌀 Sorcerer (28.5k points)
9 votes
2 answers 492 views
asked Dec 18, 2021 in Other by Catlover 🌀 Sorcerer (28.5k points)
10 votes
3 answers 707 views
asked May 21, 2021 in Polls by Crystal-Arianator 🌀 Sorcerer (39.0k points)
6 votes
2 answers 1.0k views
8 votes
2 answers 533 views
16 votes
3 answers 562 views
15 votes
1 answer 490 views
14 votes
10 answers 487 views
16 votes
1 answer 291 views
asked Nov 4, 2018 in Other by -GEMHeart- 🌟 Mystic (357k points)
8 votes
5 answers 271 views
asked May 25, 2025 in Technology by Spirit_Null ⚗️ Conjurer (19.3k points)
12 votes
4 answers 661 views
asked Sep 17, 2016 in Technology by anonymous
5 votes
2 answers 304 views

Recent Badges

Famous Question
Asked question received 500 views
- Ange10fDeath -
Notable Question
Asked question received 50 views
- ChrisTheNightguard -
Popular Question
Asked question received 100 views
- ChrisTheNightguard -
Notable Question
Asked question received 50 views
- ChrisTheNightguard -
Popular Question
Asked question received 100 views
- ChrisTheNightguard -
...