Created
August 13, 2015 20:35
-
-
Save jcollard/55aecd86d99466c81272 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import StartApp | |
import History | |
import Html | |
import Html.Events as Events | |
import Effects | |
import Task | |
import Signal | |
import Graphics.Element exposing (show) | |
import List | |
init = (["Initial"], Effects.none) | |
view address model = | |
Html.div [] (List.map Html.text model) | |
type Action = Path String | |
update action model = | |
case action of | |
Path p -> (p :: model, Effects.none) | |
app = StartApp.start { init = init, view = view, update = update, inputs = [ Signal.map Path History.path ] } | |
main = app.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment