I want to run this program as a standalone program:
module Main where main = putStrLn "Hello world!"
so I typed in ghci:
--make -o hello Main.hs
but when I want to run it with ./hello
I get a parse error for ./
.
I tried also ghc --make -o hello Main.hs
but then I get an "Variable not in scope: ghc" error.
Can somebody tell me, what I'm doing wrong?
Solved: the command has to be run in the shell and ghc and Main.hs has to be in the same directory