Haskell main function doesn't print anything after it is run

haskell, program-entry-point

Solution

How exactly are you running your code? Normally, you'd use `runhaskell` to compile and run, or you can do it in two steps with `ghc --make`. Since it's saying that all modules are loaded successfully, I'm guessing it's getting opened in `ghci`, which is the interactive haskell shell, which is often used for testing and experimentation. Try running your file with `runhaskell`.

Problem

I have a simple module like this: ``` module Main where import Semantic main = do let result = linearize [] print result ``` After I click on the .hs file, It only says that modules are loaded successfully and I can't see the final result. Is there anything I don't know?

Original source