1

I am attempting to run a simple Haskell program using runhaskell file.hs. The source code looks like this:

main = putStrLn "hello world"

The output of runhaskell is an error, which I do not know how to fix:

<interactive>:1:1: error:
attempting to use module `main:Prelude' (.\Prelude.hs) which is not loaded
Andrei Bozantan
  • 3,781
  • 2
  • 30
  • 40

0 Answers0