{"action":"created","issue":{"url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1060","labels_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1060/labels{/name}","comments_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1060/comments","events_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1060/events","html_url":"https://github.com/elm-lang/elm-compiler/issues/1060","id":107232563,"number":1060,"title":"compiler message for missing variable","user":{"login":"flip111","id":2244480,"avatar_url":"https://avatars.githubusercontent.com/u/2244480?v=3","gravatar_id":"","url":"https://api.github.com/users/flip111","html_url":"https://github.com/flip111","followers_url":"https://api.github.com/users/flip111/followers","following_url":"https://api.github.com/users/flip111/following{/other_user}","gists_url":"https://api.github.com/users/flip111/gists{/gist_id}","starred_url":"https://api.github.com/users/flip111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flip111/subscriptions","organizations_url":"https://api.github.com/users/flip111/orgs","repos_url":"https://api.github.com/users/flip111/repos","events_url":"https://api.github.com/users/flip111/events{/privacy}","received_events_url":"https://api.github.com/users/flip111/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-18T16:15:40Z","updated_at":"2015-09-18T21:12:33Z","closed_at":"2015-09-18T19:26:51Z","body":"code\r\n```haskell\r\nview : Signal.Address Action -> Model -> Html\r\nview address model =\r\n  div []\r\n    [ table [] [ thead [] [tr [] (makeHead model)]\r\n               , tbody [] (makeBody model)\r\n               ]\r\n    ]\r\n\r\nmakeHead model =\r\n  map (\\x -> th [onClick address Sort] [text x]) (getKeys model)\r\n```\r\n\r\nmessage\r\n```\r\nThe 1st argument to function `onClick` has an unexpected type.\r\n\r\n79|                  onClick address Sort]\r\n                             ^^^^^^^\r\nAs I infer the type of values flowing through your program, I see a conflict\r\nbetween these two types:\r\n\r\n    Signal.Address a\r\n\r\n    List Attribute -> List Html -> Html\r\n```\r\n\r\nComments:\r\n\r\n* don't understand how address can have a type at all when it was not given to the function\r\n* message could be something like: `address` not defined, did you forget to pass it to the `makeHead` function?"},"comment":{"url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/comments/141569974","html_url":"https://github.com/elm-lang/elm-compiler/issues/1060#issuecomment-141569974","issue_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1060","id":141569974,"user":{"login":"evancz","id":1658058,"avatar_url":"https://avatars.githubusercontent.com/u/1658058?v=3","gravatar_id":"","url":"https://api.github.com/users/evancz","html_url":"https://github.com/evancz","followers_url":"https://api.github.com/users/evancz/followers","following_url":"https://api.github.com/users/evancz/following{/other_user}","gists_url":"https://api.github.com/users/evancz/gists{/gist_id}","starred_url":"https://api.github.com/users/evancz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evancz/subscriptions","organizations_url":"https://api.github.com/users/evancz/orgs","repos_url":"https://api.github.com/users/evancz/repos","events_url":"https://api.github.com/users/evancz/events{/privacy}","received_events_url":"https://api.github.com/users/evancz/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T21:12:33Z","updated_at":"2015-09-18T21:12:33Z","body":"Ohhh, what if the `address` there is actually [`Html.address`](http://package.elm-lang.org/packages/evancz/elm-html/4.0.1/Html#address)?!?!\r\n\r\nI think that's the root thing here!"}}