Last active
October 4, 2016 13:13
-
-
Save j-hannes/12d6ef45c30d7e13147a2e07f79f55ba to your computer and use it in GitHub Desktop.
Hello world example from elm-lang.org
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main exposing (..) | |
import Html exposing (Html, span, text) | |
import Html.Attributes exposing (class) | |
main : Html a | |
main = | |
span [ class "welcome-message" ] [ text "Hello, World!" ] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just came across this while picking up Elm. Do you think you could explain what
a
is? I'm finding very limited documentation onmain
in terms of Program options, andHtml
's docs don't seem to document theHtml
function it exposes.EDIT: Just came across the answer in the official docs