Updates Hello World example to run as expected
commit6f74f8c6db0812e2a9b859baad3a8480653af8a2
authortimmytofu <star.tim.star@gmail.com>
dateFri 7 Mar 2014, 19:20 (13 years ago)
parent6f56560
docs/source/intro.rst+2−2
@@ -75,7 +75,7 @@ As an introductory example, here is the usual "Hello World" written in PureScrip
7575
7676 module Main where
7777
78− import Trace
78+ import Debug.Trace
7979
8080 main = trace "Hello, World!"
8181
@@ -89,7 +89,7 @@ which compiles to the following Javascript, ignoring the Prelude::
8989
9090The following command will compile and execute the PureScript code above::
9191
92− psc input.purs --run-main | nodejs
92+ psc input.purs --main | nodejs
9393
9494Another Example
9595---------------