@@ -60,7 +60,25 @@ PureScript is *not* designed to be a general-purpose programming language. The p
61PureScript can also be seen as a trade-off between a theoretically ideal language and one which generates reasonably high performance code.
61PureScript can also be seen as a trade-off between a theoretically ideal language and one which generates reasonably high performance code.
65+As an introductory example, here is the usual "Hello World" written in PureScript:
68+foreign import console :: { log :: String -> {} }
70+main = \() -> console.log "Hello, World!"
73+which compiles to the following Javascript:
77+ console.log("Hello, World!");
63−## First Example
81+## Another Example
65The following code defines a `Person` data type and a function to generate a string representation for a `Person`:
83The following code defines a `Person` data type and a function to generate a string representation for a `Person`: