{"action":"created","issue":{"url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1430","repository_url":"https://api.github.com/repos/elm-lang/elm-compiler","labels_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1430/labels{/name}","comments_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1430/comments","events_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1430/events","html_url":"https://github.com/elm-lang/elm-compiler/issues/1430","id":163379097,"number":1430,"title":"Compiler error when combining Bogdanp/elm-combine and jinjor/elm-time-travel","user":{"login":"pinksalmon","id":12093115,"avatar_url":"https://avatars.githubusercontent.com/u/12093115?v=3","gravatar_id":"","url":"https://api.github.com/users/pinksalmon","html_url":"https://github.com/pinksalmon","followers_url":"https://api.github.com/users/pinksalmon/followers","following_url":"https://api.github.com/users/pinksalmon/following{/other_user}","gists_url":"https://api.github.com/users/pinksalmon/gists{/gist_id}","starred_url":"https://api.github.com/users/pinksalmon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinksalmon/subscriptions","organizations_url":"https://api.github.com/users/pinksalmon/orgs","repos_url":"https://api.github.com/users/pinksalmon/repos","events_url":"https://api.github.com/users/pinksalmon/events{/privacy}","received_events_url":"https://api.github.com/users/pinksalmon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-01T11:45:49Z","updated_at":"2016-07-01T12:21:05Z","closed_at":null,"body":"Is this a compiler error? \r\n\r\nThese libararies work fine alone, but installing them both gives a compiler error. I guess jinjor/elm-time-travel depends on Dandandan/parser which also defines `*>` and `<*` and neither parser or elm-combine define custom fixity for those operators. This issue is reproducible by having just Dandandan/parser and Bogdanp/elm-combine installed.  \r\n\r\nELM VERSION:\r\n\r\n \"elm-version\": \"0.17.0 <= v < 0.18.0\"\r\n\r\nDEPENDENCIES:\r\n\r\n\"Bogdanp/elm-combine\": \"2.2.1 <= v < 3.0.0\"\r\n\"jinjor/elm-time-travel\": \"1.0.10 <= v < 2.0.0\",\r\n\r\nERROR REPORT:\r\n\r\n[\r\n{\r\n\"tag\": \"TYPE MISMATCH\",\r\n\"overview\": \"The type annotation for (<) does not match its definition.\",\r\n\"subregion\": null,\r\n\"details\": \"The type annotation is saying:\\n\\n Parser a -> Parser b -> Parser a\\n\\nBut I am inferring that the definition has this type:\\n\\n Parser (a -> b) -> Parser a -> Parser (c -> b)\\n\\nHint: A type annotation is too generic. You can probably just switch to the type\\nI inferred. These issues can be subtle though, so read more about it.\\nhttps://github.com/elm-lang/elm-compiler/blob/0.17.0/hints/type-annotations.md\",\r\n\"region\": {\r\n\"start\": {\r\n\"line\": 51,\r\n\"column\": 8\r\n},\r\n\"end\": {\r\n\"line\": 51,\r\n\"column\": 44\r\n}\r\n},\r\n\"type\": \"error\",\r\n\"file\": \"elm-stuff\\/packages\\/Bogdanp\\/elm-combine\\/2.2.1\\/src\\/Combine\\/Infix.elm\"\r\n},\r\n{\r\n\"tag\": \"TYPE MISMATCH\",\r\n\"overview\": \"The type annotation for (>) does not match its definition.\",\r\n\"subregion\": null,\r\n\"details\": \"The type annotation is saying:\\n\\n Parser a -> Parser b -> Parser b\\n\\nBut I am inferring that the definition has this type:\\n\\n Parser (a -> b) -> Parser a -> Parser (c -> c)\\n\\nHint: A type annotation is too generic. You can probably just switch to the type\\nI inferred. These issues can be subtle though, so read more about it.\\nhttps://github.com/elm-lang/elm-compiler/blob/0.17.0/hints/type-annotations.md\",\r\n\"region\": {\r\n\"start\": {\r\n\"line\": 63,\r\n\"column\": 8\r\n},\r\n\"end\": {\r\n\"line\": 63,\r\n\"column\": 44\r\n}\r\n},\r\n\"type\": \"error\",\r\n\"file\": \"elm-stuff\\/packages\\/Bogdanp\\/elm-combine\\/2.2.1\\/src\\/Combine\\/Infix.elm\"\r\n}\r\n]\r\n"},"comment":{"url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/comments/229932911","html_url":"https://github.com/elm-lang/elm-compiler/issues/1430#issuecomment-229932911","issue_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1430","id":229932911,"user":{"login":"jvoigtlaender","id":5853832,"avatar_url":"https://avatars.githubusercontent.com/u/5853832?v=3","gravatar_id":"","url":"https://api.github.com/users/jvoigtlaender","html_url":"https://github.com/jvoigtlaender","followers_url":"https://api.github.com/users/jvoigtlaender/followers","following_url":"https://api.github.com/users/jvoigtlaender/following{/other_user}","gists_url":"https://api.github.com/users/jvoigtlaender/gists{/gist_id}","starred_url":"https://api.github.com/users/jvoigtlaender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvoigtlaender/subscriptions","organizations_url":"https://api.github.com/users/jvoigtlaender/orgs","repos_url":"https://api.github.com/users/jvoigtlaender/repos","events_url":"https://api.github.com/users/jvoigtlaender/events{/privacy}","received_events_url":"https://api.github.com/users/jvoigtlaender/received_events","type":"User","site_admin":false},"created_at":"2016-07-01T12:21:05Z","updated_at":"2016-07-01T12:21:05Z","body":"In all likelihood the overall cause is this:\r\n> Right now the fixity of all infix operators used in the code you compile is globally known.\r\n\r\nSee https://github.com/elm-lang/elm-compiler/issues/1096.\r\n\r\nIn the concrete case I'm pretty sure what happens is that the fixity declaration for `` `map` `` in `Dandandan/parser` is affecting the implementations of `(<*)` and `(*>)` in `Bogdanp/elm-combine`.\r\n"}}
{"actor":{"display_login":"jvoigtlaender"}}