Initial commit

This commit is contained in:
2017-08-17 12:03:15 +01:00
commit 21d1d2bd83
9 changed files with 4178 additions and 0 deletions

25
src/Main.elm Normal file
View File

@@ -0,0 +1,25 @@
module Main exposing (..)
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
main = Html.beginnerProgram { model = model, update = update, view = view }
type alias Model =
{ expression : String
, result : List Float
}
model : Model
model = Model "" []
type Msg = ExpressionTyped String
update : Msg -> Model -> Model
update msg model =
model
view : Model -> Html Msg
view model =
div [] []

4
src/index.js Normal file
View File

@@ -0,0 +1,4 @@
var Elm = require('./Main.elm');
var mountNode = document.getElementById('app');
var app = Elm.Main.embed(mountNode);