main = do
putStrLn "Hello World"
Run emacs HelloWorld.hs, and enter the following program:
module Main where
main = putStrLn "Hello, World!"
To save press Control-x followed by Control-s. In emacs-speak this is written as C-x C-s.
Learn Haskell here - https://hackr.io/tutorials/learn-haskell
It looks like you're new here. If you want to get involved, click one of these buttons!