This example demonstrates how the default field/property name somehow causes a problem when
passing data into an Elm application through a port.
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
| # | |
| # github.com/mattn/go-oci8 | |
| # | |
| mkdir -p $WORK/github.com/mattn/go-oci8/_obj/ | |
| mkdir -p $WORK/github.com/mattn/ | |
| cd /Users/fcy/go/src/github.com/mattn/go-oci8 | |
| pkg-config --cflags oci8 | |
| pkg-config --libs oci8 | |
| /usr/local/go/pkg/tool/darwin_amd64/cgo -objdir $WORK/github.com/mattn/go-oci8/_obj/ -- -I $WORK/github.com/mattn/go-oci8/_obj/ oci8.go |
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
| $ /usr/local/go/pkg/tool/darwin_amd64/cgo -debug-gcc=true -objdir $WORK/github.com/mattn/go-oci8/_obj/ -- -Qunused-arguments -I/usr/local/lib/instantclient_11_2/sdk/include -I $WORK/github.com/mattn/go-oci8/_obj/ oci8.go | |
| $ gcc -E -dM -xc -m64 -Qunused-arguments -I/usr/local/lib/instantclient_11_2/sdk/include -I /github.com/mattn/go-oci8/_obj/ - <<EOF | |
| typedef struct { char *p; int n; } _GoString_; | |
| typedef struct { char *p; int n; int c; } _GoBytes_; | |
| _GoString_ GoString(char *p); | |
| _GoString_ GoStringN(char *p, int l); | |
| _GoBytes_ GoBytes(void *p, int n); | |
| char *CString(_GoString_); | |
| #line 3 "oci8.go" |
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 Html exposing (span) | |
| import Html.Attributes exposing (property) | |
| import Json.Encode exposing (string) | |
| main = span [ property "innerHTML" <| string "x × y"] [] |
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
| #!/bin/bash | |
| SITEHOME=/home/fred/elm/platform/Elm-Platform/master/elm-lang.org | |
| PROG=dist/build/run-elm-website/run-elm-website | |
| NAME=elm-website | |
| PATH=/usr/local/bin:/home/fred/.cabal/bin:$PATH | |
| LOGFILE=/var/log/${NAME}.log | |
| # need this to avoid error about "hGetContents: invalid argument |
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 Date | |
| import Effects | |
| import Html exposing (li, text, ul) | |
| import StartApp | |
| import Time | |
| app = | |
| StartApp.start | |
| { init = (0, Effects.none) | |
| , inputs = [Time.every Time.second] |
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 Effects | |
| import Html exposing (..) | |
| import Http | |
| import StartApp | |
| import Task | |
| app : StartApp.App String | |
| app = | |
| StartApp.start |
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 Effects exposing (Effects) | |
| import Html exposing (..) | |
| import StartApp | |
| import Task exposing (Task) | |
| import Window | |
| type alias Model = (Int, Int) | |
| type Action = Update (Int, Int) | NoOp |
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 Char | |
| import Html exposing (..) | |
| import Html.Events exposing (..) | |
| import StartApp.Simple as StartApp | |
| import String | |
| main = | |
| StartApp.start { model = model, view = view, update = update } | |
| type alias Model = String |
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 Html exposing (..) | |
| import Html.Attributes exposing (..) | |
| import Html.Events exposing (..) | |
| import StartApp.Simple as StartApp | |
| options : List (String) | |
| options = [ "one", "two", "three", "four", "five" ] | |
| type alias Model = String | |
| type alias Action = String |
OlderNewer