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


i have simple module this:

module main import semantic  main =     let result = linearize []     print result 

after click on .hs file, says modules loaded , can't see final result. there don't know?

how running code? normally, you'd use runhaskell compile , run, or can in 2 steps ghc --make. since it's saying modules loaded successfully, i'm guessing it's getting opened in ghci, interactive haskell shell, used testing , experimentation. try running file runhaskell.


Comments

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

R - Plot: How to format in 10-base scientific notation and put it text, mtex, title etc functions? -

validation - How to pass paramaters like unix into windows batch file -