When we compile unnamed modules with no main function, we get the standard GHC error that there is no main function in the module. Should we even try to fix this? runghc fails with the same error, and invoking ghc would as well... so it's really a type error in the file itself!
When we compile unnamed modules with no main function, we get the standard GHC error that there is no
main
function in the module. Should we even try to fix this?runghc
fails with the same error, and invokingghc
would as well... so it's really a type error in the file itself!