Skip to content

Instantly share code, notes, and snippets.

@BendingBender
Created July 11, 2019 12:44
Show Gist options
  • Save BendingBender/9dcf26cab49b9b85e62bdc9e9f9326d0 to your computer and use it in GitHub Desktop.
Save BendingBender/9dcf26cab49b9b85e62bdc9e9f9326d0 to your computer and use it in GitHub Desktop.
SSCCE for "I ran into something that bypassed the normal error reporting process" error in 0.19.1-alpha
{
"type": "application",
"source-directories": [
"src",
"src-gen"
],
"elm-version": "0.19.1",
"dependencies": {
"direct": {
"elm/browser": "1.0.1",
"elm/core": "1.0.2",
"elm/html": "1.0.0"
},
"indirect": {
"elm/json": "1.1.3",
"elm/time": "1.0.0",
"elm/url": "1.0.0",
"elm/virtual-dom": "1.0.2"
}
},
"test-dependencies": {
"direct": {},
"indirect": {}
}
}
-- src-gen/Main.elm
module Main exposing (main)
import Browser
import Html exposing (Html, button, div, text)
main =
Browser.sandbox { init = 0, update = update, view = view }
update msg model =
model
view = always <| text "foo"
-- src/Main.elm
module Main exposing (main)
import Browser
import Html exposing (Html, button, div, text)
main =
Browser.sandbox { init = 0, update = update, view = view }
update msg model =
model
view = always <| text "foo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment