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

javascript - CasperJS/PhantomJS failing SSL handshakes on some sites even with --ssl-protocol=any -

codeigniter - Fatal error: Call to undefined function lang() in CI Merchant using CardSave -

python - Received unregistered task using Celery with Django -