I would like to create an interface file .hiand only that (without an object file, no code generation at all).
I tried
ghc -fno-code -ohi out.hi myfile.hs
and get
ghc: -ohi can only be used when compiling a single source file
which I do not understand, since I gave only one source file.
source
share