Modulinos: Difference between revisions

Content added Content deleted
(Fixed Haskell)
Line 230: Line 230:


<lang sh>$ rm scriptedmain.hi
<lang sh>$ rm scriptedmain.hi
wonko:scriptedmain andrew$ ghc -o scriptedmain -main-is ScriptedMain scriptedmain.hs
$ ghc -o scriptedmain -main-is ScriptedMain scriptedmain.hs
wonko:scriptedmain andrew$ ./scriptedmain
$ ./scriptedmain
Main: The meaning of life is 42
Main: The meaning of life is 42
wonko:scriptedmain andrew$ rm scriptedmain.o
$ rm scriptedmain.o
wonko:scriptedmain andrew$ ghc -o test -main-is Test test.hs scriptedmain.hs
$ ghc -o test -main-is Test test.hs scriptedmain.hs
wonko:scriptedmain andrew$ ./test
$ ./test
Test: The meaning of life is 42</lang>
Test: The meaning of life is 42</lang>