{"action":"closed","issue":{"url":"https://api.github.com/repos/fthomas/refined/issues/63","labels_url":"https://api.github.com/repos/fthomas/refined/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/fthomas/refined/issues/63/comments","events_url":"https://api.github.com/repos/fthomas/refined/issues/63/events","html_url":"https://github.com/fthomas/refined/issues/63","id":109958807,"number":63,"title":"Can we refine Int to restrict to valid minutes, hours?","user":{"login":"julien-truffaut","id":1859417,"avatar_url":"https://avatars.githubusercontent.com/u/1859417?v=3","gravatar_id":"","url":"https://api.github.com/users/julien-truffaut","html_url":"https://github.com/julien-truffaut","followers_url":"https://api.github.com/users/julien-truffaut/followers","following_url":"https://api.github.com/users/julien-truffaut/following{/other_user}","gists_url":"https://api.github.com/users/julien-truffaut/gists{/gist_id}","starred_url":"https://api.github.com/users/julien-truffaut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julien-truffaut/subscriptions","organizations_url":"https://api.github.com/users/julien-truffaut/orgs","repos_url":"https://api.github.com/users/julien-truffaut/repos","events_url":"https://api.github.com/users/julien-truffaut/events{/privacy}","received_events_url":"https://api.github.com/users/julien-truffaut/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fthomas/refined/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-10-06T08:26:43Z","updated_at":"2015-10-18T15:26:18Z","closed_at":"2015-10-18T15:26:18Z","body":"Similar to `NonNegative Int` but for Int limited to `[0 .. 60]` or `[0 .. 24]`\r\n\r\nI would like to use this new types to define lawful `Lens` on `Date` e.g.\r\n\r\n```scala\r\nval minute: Lens[Date, Minute] = ???\r\n\r\nminute.set(30)(d)   // ok\r\nminutes.set(79)(d) // compile error\r\n```"}}