{"action":"closed","issue":{"url":"https://api.github.com/repos/fable-elmish/browser/issues/6","repository_url":"https://api.github.com/repos/fable-elmish/browser","labels_url":"https://api.github.com/repos/fable-elmish/browser/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/fable-elmish/browser/issues/6/comments","events_url":"https://api.github.com/repos/fable-elmish/browser/issues/6/events","html_url":"https://github.com/fable-elmish/browser/issues/6","id":244691496,"number":6,"title":"How to parse a string literal","user":{"login":"lambdakris","id":15176003,"avatar_url":"https://avatars1.githubusercontent.com/u/15176003?v=4","gravatar_id":"","url":"https://api.github.com/users/lambdakris","html_url":"https://github.com/lambdakris","followers_url":"https://api.github.com/users/lambdakris/followers","following_url":"https://api.github.com/users/lambdakris/following{/other_user}","gists_url":"https://api.github.com/users/lambdakris/gists{/gist_id}","starred_url":"https://api.github.com/users/lambdakris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lambdakris/subscriptions","organizations_url":"https://api.github.com/users/lambdakris/orgs","repos_url":"https://api.github.com/users/lambdakris/repos","events_url":"https://api.github.com/users/lambdakris/events{/privacy}","received_events_url":"https://api.github.com/users/lambdakris/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-07-21T14:45:49Z","updated_at":"2017-07-21T18:23:15Z","closed_at":"2017-07-21T18:23:15Z","body":"### Description\r\n\r\nReferring to [Parsing Routes](https://fable-elmish.github.io/browser/routing.html#Parsing-routes) in the docs, I was not able to parse a string literal.\r\n\r\n### Repro code\r\n\r\n```\r\nopen Elmish.Browser.UrlParser\r\n\r\nparse (s \"blog\") \"blog\"\r\n```\r\n\r\n### Expected and actual result\r\n\r\nI figured it would compile and yield Some \"blog\", however, the expression doesn't compile due to the following error:\r\n```\r\nType mismatch. Expecting a \r\n  'Parser<('a -> 'a)>, 'a>'\r\nbut given a\r\n  'Parser<('a -> 'a), ('a -> 'a)>'\r\nthe types ''a' and ''a -> 'a' cannot be unified\r\n```\r\n\r\n### Related information \r\n\r\n* fable-elmish version: 0.9.2\r\n* fable-compiler version: 1.1.9\r\n* fable-core version: 1.1.7\r\n* Operating system: Windows 10\r\n"}}
{"actor":{"display_login":"et1975"}}