Beginner hello world

why “Hello Anna!” isn’t showed here even after saving the file

main is just a normal function. You still have to call it in your repl.

*Main> main
Hello world!
Hello Anna!
4 Likes

Alternately, you can compile it with ghc and run the executable.

$ ghc Anna.hs
$ ./Anna
1 Like