Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update code examples in chapter 1 #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arbus
Copy link

@arbus arbus commented May 23, 2015

I just started going through the book and realized that some of the examples don't work because some of the syntax seems to have changed slightly.

I have updated all the examples on chapter1 so that they will compile on the latest elm. I will do this for the other chapters as I work through them

@Zillode
Copy link

Zillode commented Jul 5, 2015

👍

@@ -17,13 +17,16 @@ The first example will display the “Hello World” message. The program

% HelloWorld1.elm
import Text
main = Text.plainText "Hello World"
import Graphics.Element
main = Graphics.Element.leftAligned (Text.fromString "Hello World")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Graphics.Element.show "Hello World" also works and is a bit more lightweight for printing hello world.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants