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

Fixed sample code and instructions #188

Merged
merged 1 commit into from
Oct 3, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion en/02-elm-arch/03-messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@

In the last section, we created an application using Html.program that was just static Html. Now let's create an application that responds to user interaction using messages.

Now, edit your **App.elm** file, or create a new one (just remember to give the module the same name that your source file has):

Copy link
Owner

Choose a reason for hiding this comment

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

In https://github.com/sporto/elm-tutorial-app/blob/master/src/Main.elm I named the app Main.
I think this is great, but please change to Main.elm

Copy link
Owner

Choose a reason for hiding this comment

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

Don't mind this. You are right, this part of the tutorial uses App.elm. I might need to make this consistent later.

```elm
module Main exposing (..)
module App exposing (..)

import Html exposing (Html, button, div, text, program)
import Html.Events exposing (onClick)
Expand Down