{"action":"created","issue":{"url":"https://api.github.com/repos/eeue56/elm-html-test/issues/37","repository_url":"https://api.github.com/repos/eeue56/elm-html-test","labels_url":"https://api.github.com/repos/eeue56/elm-html-test/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/eeue56/elm-html-test/issues/37/comments","events_url":"https://api.github.com/repos/eeue56/elm-html-test/issues/37/events","html_url":"https://github.com/eeue56/elm-html-test/issues/37","id":247577169,"number":37,"title":"Query.contains error when using onInput","user":{"login":"yormi","id":6423588,"avatar_url":"https://avatars0.githubusercontent.com/u/6423588?v=4","gravatar_id":"","url":"https://api.github.com/users/yormi","html_url":"https://github.com/yormi","followers_url":"https://api.github.com/users/yormi/followers","following_url":"https://api.github.com/users/yormi/following{/other_user}","gists_url":"https://api.github.com/users/yormi/gists{/gist_id}","starred_url":"https://api.github.com/users/yormi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yormi/subscriptions","organizations_url":"https://api.github.com/users/yormi/orgs","repos_url":"https://api.github.com/users/yormi/repos","events_url":"https://api.github.com/users/yormi/events{/privacy}","received_events_url":"https://api.github.com/users/yormi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-08-03T02:47:51Z","updated_at":"2018-02-03T20:19:39Z","closed_at":"2018-02-03T20:19:39Z","author_association":"CONTRIBUTOR","body":"> This test failed because it threw an exception: \"Error: Trying to use `(==)` on functions. There is no way to know if functions are \"the same\" in the Elm sense. Read more about this at http://package.elm-lang.org/packages/elm-lang/core/latest/Basics#== which describes why it is this way and what the better version will look like.\"\r\n\r\nAfter few tests to reproduce the problem, that seems to happen only if we use a function with arguments to render some Html that has a `Events.onInput (\\a -> a)` in it.\r\n\r\nOddly enough, there's not error when we use a message that only has a String like when you replace the `(A \"a\")` by `B` in the following:\r\n\r\nSo, here's the test I used in `tests/Descendant.elm` :\r\n\r\n```elm\r\n            test \"works with function rendering onInput with a function as argument\" <|\r\n                \\() ->\r\n                    let\r\n                        htmlWithEvent notEvenUsed =\r\n                            div [] [ h1 [ onInput (A \"a\") ] [] ]\r\n\r\n                        html =\r\n                            div [] [ htmlWithEvent \"foo\" ]\r\n                    in\r\n                        wrapper html (htmlWithEvent \"foo\")\r\n                            |> Expect.true \"\"\r\n\r\ntype Msg\r\n    = A String String\r\n    | B String\r\n```\r\n\r\nDo you have an idea why on Earth it does that under such conditions ?\r\n\r\nI'll be gone for almost 2 weeks. I'd like to solve that when I'll come back :)"},"comment":{"url":"https://api.github.com/repos/eeue56/elm-html-test/issues/comments/362851049","html_url":"https://github.com/eeue56/elm-html-test/issues/37#issuecomment-362851049","issue_url":"https://api.github.com/repos/eeue56/elm-html-test/issues/37","id":362851049,"user":{"login":"rtfeldman","id":1094080,"avatar_url":"https://avatars3.githubusercontent.com/u/1094080?v=4","gravatar_id":"","url":"https://api.github.com/users/rtfeldman","html_url":"https://github.com/rtfeldman","followers_url":"https://api.github.com/users/rtfeldman/followers","following_url":"https://api.github.com/users/rtfeldman/following{/other_user}","gists_url":"https://api.github.com/users/rtfeldman/gists{/gist_id}","starred_url":"https://api.github.com/users/rtfeldman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtfeldman/subscriptions","organizations_url":"https://api.github.com/users/rtfeldman/orgs","repos_url":"https://api.github.com/users/rtfeldman/repos","events_url":"https://api.github.com/users/rtfeldman/events{/privacy}","received_events_url":"https://api.github.com/users/rtfeldman/received_events","type":"User","site_admin":false},"created_at":"2018-02-03T20:19:39Z","updated_at":"2018-02-03T20:19:39Z","author_association":"COLLABORATOR","body":"Thanks for reporting this, and for the discussion! Now that it's clearer what the problem is, I opened https://github.com/eeue56/elm-html-test/issues/50 to discuss solutions."}}
{"actor":{"display_login":"rtfeldman"}}