{"action":"opened","issue":{"url":"https://api.github.com/repos/http4s/http4s/issues/352","labels_url":"https://api.github.com/repos/http4s/http4s/issues/352/labels{/name}","comments_url":"https://api.github.com/repos/http4s/http4s/issues/352/comments","events_url":"https://api.github.com/repos/http4s/http4s/issues/352/events","html_url":"https://github.com/http4s/http4s/issues/352","id":95324284,"number":352,"title":"pattern match for Path does not work","user":{"login":"ShengC","id":940628,"avatar_url":"https://avatars.githubusercontent.com/u/940628?v=3","gravatar_id":"","url":"https://api.github.com/users/ShengC","html_url":"https://github.com/ShengC","followers_url":"https://api.github.com/users/ShengC/followers","following_url":"https://api.github.com/users/ShengC/following{/other_user}","gists_url":"https://api.github.com/users/ShengC/gists{/gist_id}","starred_url":"https://api.github.com/users/ShengC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShengC/subscriptions","organizations_url":"https://api.github.com/users/ShengC/orgs","repos_url":"https://api.github.com/users/ShengC/repos","events_url":"https://api.github.com/users/ShengC/events{/privacy}","received_events_url":"https://api.github.com/users/ShengC/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-16T01:08:32Z","updated_at":"2015-07-16T01:08:32Z","closed_at":null,"body":" The unapply methods in Path object are useless,\r\n\r\n    val path: Path = ???\r\n  \r\n    val Path(xyz) = path // does not work\r\n    val Path(x, y, z) = path // does not work, nor compile !\r\n\r\n The right way of doing this if http4s does want to support them,\r\n\r\n    object PathList { def unapply(path: Path): Option[List[String]] = ???}\r\n\r\n    object PathItems { def unapplySeq(path: Path): Option[ist[String]] = ??? }\r\n\r\n    // both compiles\r\n    val PathList(xyz) = path \r\n    val PathItems(x, y, z) = path"}}