{"action":"created","issue":{"url":"https://api.github.com/repos/sanctuary-js/sanctuary/issues/228","repository_url":"https://api.github.com/repos/sanctuary-js/sanctuary","labels_url":"https://api.github.com/repos/sanctuary-js/sanctuary/issues/228/labels{/name}","comments_url":"https://api.github.com/repos/sanctuary-js/sanctuary/issues/228/comments","events_url":"https://api.github.com/repos/sanctuary-js/sanctuary/issues/228/events","html_url":"https://github.com/sanctuary-js/sanctuary/issues/228","id":158078046,"number":228,"title":"Add fromJust function to Maybe","user":{"login":"jgoux","id":1443499,"avatar_url":"https://avatars.githubusercontent.com/u/1443499?v=3","gravatar_id":"","url":"https://api.github.com/users/jgoux","html_url":"https://github.com/jgoux","followers_url":"https://api.github.com/users/jgoux/followers","following_url":"https://api.github.com/users/jgoux/following{/other_user}","gists_url":"https://api.github.com/users/jgoux/gists{/gist_id}","starred_url":"https://api.github.com/users/jgoux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgoux/subscriptions","organizations_url":"https://api.github.com/users/jgoux/orgs","repos_url":"https://api.github.com/users/jgoux/repos","events_url":"https://api.github.com/users/jgoux/events{/privacy}","received_events_url":"https://api.github.com/users/jgoux/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-02T07:42:50Z","updated_at":"2016-06-02T10:47:44Z","closed_at":"2016-06-02T10:47:44Z","body":"Hi,\r\n\r\nI often need to extract a value from a Just, and I only dispose of `S.maybe` or `S.fromMaybe` which isn't exactly what I want.\r\n\r\nThe [Haskell's Data.Maybe](https://hackage.haskell.org/package/base-4.9.0.0/docs/Data-Maybe.html) has a `fromJust` function exactly for this purpose.\r\n\r\nCould it be possible to add it to Sanctuary ?"},"comment":{"url":"https://api.github.com/repos/sanctuary-js/sanctuary/issues/comments/223257848","html_url":"https://github.com/sanctuary-js/sanctuary/issues/228#issuecomment-223257848","issue_url":"https://api.github.com/repos/sanctuary-js/sanctuary/issues/228","id":223257848,"user":{"login":"jgoux","id":1443499,"avatar_url":"https://avatars.githubusercontent.com/u/1443499?v=3","gravatar_id":"","url":"https://api.github.com/users/jgoux","html_url":"https://github.com/jgoux","followers_url":"https://api.github.com/users/jgoux/followers","following_url":"https://api.github.com/users/jgoux/following{/other_user}","gists_url":"https://api.github.com/users/jgoux/gists{/gist_id}","starred_url":"https://api.github.com/users/jgoux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgoux/subscriptions","organizations_url":"https://api.github.com/users/jgoux/orgs","repos_url":"https://api.github.com/users/jgoux/repos","events_url":"https://api.github.com/users/jgoux/events{/privacy}","received_events_url":"https://api.github.com/users/jgoux/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T10:47:44Z","updated_at":"2016-06-02T10:47:44Z","body":"I have a function `queryOne` in my database library which returns a `Maybe a`.\r\n\r\nAs I execute a postgres sql statement using the `INSERT INTO ... RETURNING` syntax, I'm sure that if the query succeeds I'll have a result.\r\n\r\nIn fact this is one of the only place where I'd need `fromJust` after searching through my project. xD\r\nSo I'll use `S.maybeToNullable` which I wasn't aware of ! :+1: \r\n\r\nThanks. :100: "}}
{"actor":{"display_login":"jgoux"}}