Add references and clean up parts 1 and 2

This commit is contained in:
Richard Feldman
2016-04-03 19:30:14 -07:00
parent c4aec5964e
commit 24f6b246fe
4 changed files with 11 additions and 2 deletions

View File

@@ -2,7 +2,6 @@ module Main (..) where
import Html exposing (..) import Html exposing (..)
import Html.Attributes exposing (..) import Html.Attributes exposing (..)
import Auth
model = model =

View File

@@ -15,3 +15,8 @@ to fail; in that case, just run `elm package install` again.)
```bash ```bash
elm live Main.elm --open -- --output=elm.js elm live Main.elm --open -- --output=elm.js
``` ```
## References
* [html-to-elm](http://mbylstra.github.io/html-to-elm/) - paste in HTML, get elm-html code
* [elm-html documentation](http://package.elm-lang.org/packages/evancz/elm-html/4.0.2/)
* [record syntax](http://elm-lang.org/docs/syntax#records) (e.g. `{ foo = 1, bar = 2`)

View File

@@ -2,7 +2,6 @@ module Main (..) where
import Html exposing (..) import Html exposing (..)
import Html.Attributes exposing (..) import Html.Attributes exposing (..)
import Auth
type alias Model = type alias Model =

View File

@@ -15,3 +15,9 @@ to fail; in that case, just run `elm package install` again.)
```bash ```bash
elm live Main.elm --open -- --output=elm.js elm live Main.elm --open -- --output=elm.js
``` ```
## References
* [Type Annotation syntax reference](http://elm-lang.org/docs/syntax#type-annotations)
* [`type alias` syntax reference](http://elm-lang.org/docs/syntax#type-aliases)
* [`List.map` documentation](http://package.elm-lang.org/packages/elm-lang/core/3.0.0/List#map)