I have a huge haskell file that compiles and runs without any problems. I want to put some functions and type definitions in a separate module in a shared hs file, and then import it into my main module. Although the main program compiles without any error (it also compiles the imported module), I get a stack overflow when I try to start it.
I tried:
ghc
./Main
also:
ghc
./RunMe
Is it correct to compile or am I missing something?
source
share