module Main exposing (..)

import Html exposing (text)

main =
    text "Hi Records!"

module Main exposing (..)

import Html exposing (text)


type alias Dog =
    { name: String
    , age: Int
    }

dog =
    { name = "Spock"
    , age = 3
    }

renderDog : Dog -> String
renderDog dog =
    dog.name
        ++ " - "
        ++ (toString dog.age)

main =
    text <| renderDog dog

Store records, and refer to with type signatures
Store records, and refer to with type signatures
