{"action":"created","issue":{"url":"https://api.github.com/repos/yesodweb/yesod/issues/1098","labels_url":"https://api.github.com/repos/yesodweb/yesod/issues/1098/labels{/name}","comments_url":"https://api.github.com/repos/yesodweb/yesod/issues/1098/comments","events_url":"https://api.github.com/repos/yesodweb/yesod/issues/1098/events","html_url":"https://github.com/yesodweb/yesod/issues/1098","id":115076844,"number":1098,"title":"Is it possible to develop persistent + app logic separately from Yesod?","user":{"login":"mrkkrp","id":8165792,"avatar_url":"https://avatars.githubusercontent.com/u/8165792?v=3","gravatar_id":"","url":"https://api.github.com/users/mrkkrp","html_url":"https://github.com/mrkkrp","followers_url":"https://api.github.com/users/mrkkrp/followers","following_url":"https://api.github.com/users/mrkkrp/following{/other_user}","gists_url":"https://api.github.com/users/mrkkrp/gists{/gist_id}","starred_url":"https://api.github.com/users/mrkkrp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrkkrp/subscriptions","organizations_url":"https://api.github.com/users/mrkkrp/orgs","repos_url":"https://api.github.com/users/mrkkrp/repos","events_url":"https://api.github.com/users/mrkkrp/events{/privacy}","received_events_url":"https://api.github.com/users/mrkkrp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-11-04T15:21:58Z","updated_at":"2015-11-06T11:42:24Z","closed_at":"2015-11-05T15:19:24Z","body":"I would like to first write my application's logic in form of library which would depend on `persistent` package, but not entire Yesod. This part would implement all the application logic and expose clear API without knowing anything about web. Then I want to add web interface (with Yesod) on top of this. I expect result to be clearer and easier to maintain.\r\n\r\nThis is my first project with Yesod, so I need your advice. Is this approach used by Yesod developers? Is it possible or I will be fighting the framework this way? Yesod book in chapter “Persistent” says that:\r\n\r\n> Persistent works well with Yesod, but it is quite usable on its own as a standalone library. Most of this chapter will address Persistent on its own.\r\n\r\nAnd I think it rather confirms that my idea is feasible. However, I decided to ask directly, because I don't want to run into weird problems with half-finished project.\r\n"},"comment":{"url":"https://api.github.com/repos/yesodweb/yesod/issues/comments/154390750","html_url":"https://github.com/yesodweb/yesod/issues/1098#issuecomment-154390750","issue_url":"https://api.github.com/repos/yesodweb/yesod/issues/1098","id":154390750,"user":{"login":"mrkkrp","id":8165792,"avatar_url":"https://avatars.githubusercontent.com/u/8165792?v=3","gravatar_id":"","url":"https://api.github.com/users/mrkkrp","html_url":"https://github.com/mrkkrp","followers_url":"https://api.github.com/users/mrkkrp/followers","following_url":"https://api.github.com/users/mrkkrp/following{/other_user}","gists_url":"https://api.github.com/users/mrkkrp/gists{/gist_id}","starred_url":"https://api.github.com/users/mrkkrp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrkkrp/subscriptions","organizations_url":"https://api.github.com/users/mrkkrp/orgs","repos_url":"https://api.github.com/users/mrkkrp/repos","events_url":"https://api.github.com/users/mrkkrp/events{/privacy}","received_events_url":"https://api.github.com/users/mrkkrp/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T11:42:24Z","updated_at":"2015-11-06T11:42:24Z","body":"I've made a table. It shows what is described in Yesod Book and what is described in the Wiki. Some things are not described at all.\r\n\r\nThing            | Yesod Book                           | Persistent Wiki\r\n-----            | ----------                           | ---------------\r\n`Asc`, `Desc`    | only as parameters of `selectList`   | `×`\r\n`Maybe`          | `✔`                                  | `✔`\r\n`sql=…`          | `✔`                                  | `✔`\r\n`default=…`      | `✔`                                  | `✔`\r\n`id=…`           | mentioned in example                 | `×`\r\n`Update`         | `×`                                  | `×`\r\n`Eq`, `Ne`, `Gt` | `×`                                  | `×`\r\n`In`             | `×`                                  | `×`\r\n\r\nIt would be good if “Persistent Wiki” column had no `×` marks.\r\n"}}