Ghc XXX creates XXX.hi XXX.o, but does not link

I’ve installed ghc-9.2.7 with ghcup.

When I try to compile a simple hello world program, using ghc, no executable is created. There is no linking message.

If I load the file in ghci, it compiles fine and runs.

My system is Arcolinux.

I’ve also tried this with ghc-9.4.2 and ghc-9.4.4 before I reinstalled ghcup

1 Like

Does the source file contain module Something where, where “Something” is not main?

2 Likes