{"action":"created","comment":{"url":"https://api.github.com/repos/DATx02-16-14/Hastings/pulls/comments/59861589","id":59861589,"diff_hunk":"@@ -0,0 +1,129 @@\n+module Hastings.Database.Game where\n+\n+import Hastings.Database.Common (runDB)\n+import Hastings.Database.Fields\n+\n+import qualified Database.Esqueleto as Esql\n+import qualified Database.Persist.Sql as Pers\n+\n+import Haste.App (SessionID)\n+import Data.Maybe (listToMaybe)\n+import Control.Monad (liftM)\n+import Data.ByteString.Char8 (ByteString)\n+\n+-- |Retrieve a game from the database.\n+retrieveGameByName :: String -- ^The name of the game to retrieve.\n+                   -> IO (Maybe (Esql.Entity Game))\n+retrieveGameByName name = runDB $ Esql.getBy $ UniqueName name\n+\n+-- |Retrieve a game from the database.\n+retrieveGameByUUID :: String -- ^The UUID of the game\n+                   -> IO (Maybe (Esql.Entity Game))\n+retrieveGameByUUID uuid = runDB $ Esql.getBy $ UniqueUUID uuid\n+\n+-- |Retrieves the game from the database that the player is currently in.\n+retrieveGameBySid :: SessionID -- ^The sessionID of the player.\n+                  -> IO (Maybe (Esql.Entity Game))\n+retrieveGameBySid sid = runDB $ do\n+  games <- Esql.select $\n+    Esql.from $ \\(games, playersInGame) -> do\n+      Esql.where_ (games Esql.^. GameId Esql.==. playersInGame Esql.^. PlayerInGameGame\n+          Esql.&&. playersInGame Esql.^. PlayerInGamePlayer Esql.==. Esql.val sid)\n+      return games\n+  return $ listToMaybe games\n+\n+-- |Retrieves all games from the database\n+retrieveAllGames :: IO [Esql.Entity Game]\n+retrieveAllGames = runDB $ Pers.selectList ([] :: [Pers.Filter Game]) []\n+\n+-- |Save a game to the database.\n+saveGame :: String        -- ^The UUID of the game to save.\n+         -> String        -- ^The name of the game to save.\n+         -> Int           -- ^Maximum amount of players for this game.\n+         -> SessionID     -- ^The sessionID of the owner of the game.\n+         -> ByteString    -- ^The password of the game, empty if the game has no password.\n+         -> IO (Esql.Key Game)\n+saveGame uuid name maxAmountOfPlayers owner password = runDB $ Esql.insert $ Game uuid name maxAmountOfPlayers owner password\n+\n+-- |Set password on game\n+setPasswordOnGame :: String     -- ^The UUID of the game\n+                  -> ByteString -- ^The password of the game\n+                  -> IO ()\n+setPasswordOnGame uuid password = runDB $\n+  Esql.update $ \\games -> do\n+    Esql.set games [GamePassword Esql.=. Esql.val password]\n+    Esql.where_ (games Esql.^. GameUuid Esql.==. Esql.val uuid)\n+\n+-- |Set the name of the game\n+setNameOnGame :: String -- ^The UUID of the game\n+              -> String -- ^The new name of the game\n+              -> IO ()\n+setNameOnGame uuid name = runDB $\n+  Esql.update $ \\games -> do\n+    Esql.set games [GameName Esql.=. Esql.val name]\n+    Esql.where_ (games Esql.^. GameUuid Esql.==. Esql.val uuid)\n+\n+-- |Set the number of players in a game\n+setNumberOfPlayersInGame :: String -- ^The UUID of the game.\n+                         -> Int    -- ^The new number of players.\n+                         -> IO ()\n+setNumberOfPlayersInGame uuid numberOfPlayers = runDB $\n+  Esql.update $ \\games -> do\n+      Esql.set games [GameMaxAmountOfPlayers Esql.=. Esql.val numberOfPlayers]\n+      Esql.where_ (games Esql.^. GameUuid Esql.==. Esql.val uuid)\n+\n+-- |Set the owner of a game.\n+setGameOwner :: Esql.Key Game -- ^The key of the game.\n+             -> SessionID     -- ^The sessionID of the new owner.\n+             -> IO ()\n+setGameOwner gameKey sid = runDB $\n+  Esql.update $ \\games -> do\n+    Esql.set games [GameOwner Esql.=. Esql.val sid]\n+    Esql.where_ (games Esql.^. GameId Esql.==. Esql.val gameKey)\n+\n+-- |Add a player to a game\n+addPlayerToGame :: SessionID -- ^The sessionID of the player.\n+                -> Esql.Key Game -- ^The key of the game.\n+                -> IO (Esql.Key PlayerInGame)\n+addPlayerToGame sessionID gameKey = runDB $ Esql.insert $ PlayerInGame gameKey sessionID\n+\n+-- |Remove a player from a game\n+removePlayerFromGame :: SessionID -- ^The sessionID od the player.\n+                     -> Esql.Key Game -- ^The key of the game.\n+                     -> IO ()\n+removePlayerFromGame sessionID gameKey = runDB $\n+  Esql.delete $ Esql.from $ \\playersInGame ->\n+    Esql.where_ (playersInGame Esql.^. PlayerInGameGame Esql.==. Esql.val gameKey\n+        Esql.&&. playersInGame Esql.^. PlayerInGamePlayer Esql.==. Esql.val sessionID)\n+\n+-- |Retrieves a players that are currently in a game.","path":"src/Hastings/Database/Game.hs","position":99,"original_position":99,"commit_id":"9e609c7084338dabdcfc8fffd190b421e83b6194","original_commit_id":"9e609c7084338dabdcfc8fffd190b421e83b6194","user":{"login":"Kalior","id":2412457,"avatar_url":"https://avatars.githubusercontent.com/u/2412457?v=3","gravatar_id":"","url":"https://api.github.com/users/Kalior","html_url":"https://github.com/Kalior","followers_url":"https://api.github.com/users/Kalior/followers","following_url":"https://api.github.com/users/Kalior/following{/other_user}","gists_url":"https://api.github.com/users/Kalior/gists{/gist_id}","starred_url":"https://api.github.com/users/Kalior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kalior/subscriptions","organizations_url":"https://api.github.com/users/Kalior/orgs","repos_url":"https://api.github.com/users/Kalior/repos","events_url":"https://api.github.com/users/Kalior/events{/privacy}","received_events_url":"https://api.github.com/users/Kalior/received_events","type":"User","site_admin":false},"body":"a players?","created_at":"2016-04-15T11:34:08Z","updated_at":"2016-04-15T11:34:08Z","html_url":"https://github.com/DATx02-16-14/Hastings/pull/91#discussion_r59861589","pull_request_url":"https://api.github.com/repos/DATx02-16-14/Hastings/pulls/91","_links":{"self":{"href":"https://api.github.com/repos/DATx02-16-14/Hastings/pulls/comments/59861589"},"html":{"href":"https://github.com/DATx02-16-14/Hastings/pull/91#discussion_r59861589"},"pull_request":{"href":"https://api.github.com/repos/DATx02-16-14/Hastings/pulls/91"}}},"pull_request":{"url":"https://api.github.com/repos/DATx02-16-14/Hastings/pulls/91","id":66507972,"html_url":"https://github.com/DATx02-16-14/Hastings/pull/91","diff_url":"https://github.com/DATx02-16-14/Hastings/pull/91.diff","patch_url":"https://github.com/DATx02-16-14/Hastings/pull/91.patch","issue_url":"https://api.github.com/repos/DATx02-16-14/Hastings/issues/91","number":91,"state":"open","locked":false,"title":"Feature/store active games in database","user":{"login":"Kerp1","id":4082428,"avatar_url":"https://avatars.githubusercontent.com/u/4082428?v=3","gravatar_id":"","url":"https://api.github.com/users/Kerp1","html_url":"https://github.com/Kerp1","followers_url":"https://api.github.com/users/Kerp1/followers","following_url":"https://api.github.com/users/Kerp1/following{/other_user}","gists_url":"https://api.github.com/users/Kerp1/gists{/gist_id}","starred_url":"https://api.github.com/users/Kerp1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kerp1/subscriptions","organizations_url":"https://api.github.com/users/Kerp1/orgs","repos_url":"https://api.github.com/users/Kerp1/repos","events_url":"https://api.github.com/users/Kerp1/events{/privacy}","received_events_url":"https://api.github.com/users/Kerp1/received_events","type":"User","site_admin":false},"body":"I have moved all information stored about a game into the database.\r\n\r\nAll functionality should work as expected however the tests does not always pass, they fail with an error like: `*** Failed! Exception: 'ConnectionError {errFunction = \"query\", errNumber = 1205, errMessage = \"Lock wait timeout exceeded; try restarting transaction\"}'`\r\n\r\nBecause of this I have not created any new tests, more investigation is needed into correctly test code where the database is involved.\r\n\r\nfixes #86 ","created_at":"2016-04-14T15:48:41Z","updated_at":"2016-04-15T11:34:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"72d599b93ee60c80a8aa8adc6c871350541efacb","assignee":{"login":"Kalior","id":2412457,"avatar_url":"https://avatars.githubusercontent.com/u/2412457?v=3","gravatar_id":"","url":"https://api.github.com/users/Kalior","html_url":"https://github.com/Kalior","followers_url":"https://api.github.com/users/Kalior/followers","following_url":"https://api.github.com/users/Kalior/following{/other_user}","gists_url":"https://api.github.com/users/Kalior/gists{/gist_id}","starred_url":"https://api.github.com/users/Kalior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kalior/subscriptions","organizations_url":"https://api.github.com/users/Kalior/orgs","repos_url":"https://api.github.com/users/Kalior/repos","events_url":"https://api.github.com/users/Kalior/events{/privacy}","received_events_url":"https://api.github.com/users/Kalior/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/DATx02-16-14/Hastings/milestones/9","html_url":"https://github.com/DATx02-16-14/Hastings/milestones/Lobby","labels_url":"https://api.github.com/repos/DATx02-16-14/Hastings/milestones/9/labels","id":1574991,"number":9,"title":"Lobby","description":"The project focuses on creating a simple lobby for the game and this milestone represents that part of the project. The goal is to create a flexible lobby that can be used together with an arbitrary game which is why this milestone is substantially larger than the game ones. ","creator":{"login":"Tejpbit","id":6124487,"avatar_url":"https://avatars.githubusercontent.com/u/6124487?v=3","gravatar_id":"","url":"https://api.github.com/users/Tejpbit","html_url":"https://github.com/Tejpbit","followers_url":"https://api.github.com/users/Tejpbit/followers","following_url":"https://api.github.com/users/Tejpbit/following{/other_user}","gists_url":"https://api.github.com/users/Tejpbit/gists{/gist_id}","starred_url":"https://api.github.com/users/Tejpbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tejpbit/subscriptions","organizations_url":"https://api.github.com/users/Tejpbit/orgs","repos_url":"https://api.github.com/users/Tejpbit/repos","events_url":"https://api.github.com/users/Tejpbit/events{/privacy}","received_events_url":"https://api.github.com/users/Tejpbit/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":20,"state":"open","created_at":"2016-02-10T14:59:57Z","updated_at":"2016-04-15T11:02:41Z","due_on":"2016-04-21T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/DATx02-16-14/Hastings/pulls/91/commits","review_comments_url":"https://api.github.com/repos/DATx02-16-14/Hastings/pulls/91/comments","review_comment_url":"https://api.github.com/repos/DATx02-16-14/Hastings/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DATx02-16-14/Hastings/issues/91/comments","statuses_url":"https://api.github.com/repos/DATx02-16-14/Hastings/statuses/9e609c7084338dabdcfc8fffd190b421e83b6194","head":{"label":"DATx02-16-14:feature/store-active-games-in-database","ref":"feature/store-active-games-in-database","sha":"9e609c7084338dabdcfc8fffd190b421e83b6194","user":{"login":"DATx02-16-14","id":17639706,"avatar_url":"https://avatars.githubusercontent.com/u/17639706?v=3","gravatar_id":"","url":"https://api.github.com/users/DATx02-16-14","html_url":"https://github.com/DATx02-16-14","followers_url":"https://api.github.com/users/DATx02-16-14/followers","following_url":"https://api.github.com/users/DATx02-16-14/following{/other_user}","gists_url":"https://api.github.com/users/DATx02-16-14/gists{/gist_id}","starred_url":"https://api.github.com/users/DATx02-16-14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DATx02-16-14/subscriptions","organizations_url":"https://api.github.com/users/DATx02-16-14/orgs","repos_url":"https://api.github.com/users/DATx02-16-14/repos","events_url":"https://api.github.com/users/DATx02-16-14/events{/privacy}","received_events_url":"https://api.github.com/users/DATx02-16-14/received_events","type":"Organization","site_admin":false},"repo":{"id":50848652,"name":"Hastings","full_name":"DATx02-16-14/Hastings","owner":{"login":"DATx02-16-14","id":17639706,"avatar_url":"https://avatars.githubusercontent.com/u/17639706?v=3","gravatar_id":"","url":"https://api.github.com/users/DATx02-16-14","html_url":"https://github.com/DATx02-16-14","followers_url":"https://api.github.com/users/DATx02-16-14/followers","following_url":"https://api.github.com/users/DATx02-16-14/following{/other_user}","gists_url":"https://api.github.com/users/DATx02-16-14/gists{/gist_id}","starred_url":"https://api.github.com/users/DATx02-16-14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DATx02-16-14/subscriptions","organizations_url":"https://api.github.com/users/DATx02-16-14/orgs","repos_url":"https://api.github.com/users/DATx02-16-14/repos","events_url":"https://api.github.com/users/DATx02-16-14/events{/privacy}","received_events_url":"https://api.github.com/users/DATx02-16-14/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DATx02-16-14/Hastings","description":"A project evaluating Haste.App and the suitability of Haskell for the web.","fork":false,"url":"https://api.github.com/repos/DATx02-16-14/Hastings","forks_url":"https://api.github.com/repos/DATx02-16-14/Hastings/forks","keys_url":"https://api.github.com/repos/DATx02-16-14/Hastings/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DATx02-16-14/Hastings/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DATx02-16-14/Hastings/teams","hooks_url":"https://api.github.com/repos/DATx02-16-14/Hastings/hooks","issue_events_url":"https://api.github.com/repos/DATx02-16-14/Hastings/issues/events{/number}","events_url":"https://api.github.com/repos/DATx02-16-14/Hastings/events","assignees_url":"https://api.github.com/repos/DATx02-16-14/Hastings/assignees{/user}","branches_url":"https://api.github.com/repos/DATx02-16-14/Hastings/branches{/branch}","tags_url":"https://api.github.com/repos/DATx02-16-14/Hastings/tags","blobs_url":"https://api.github.com/repos/DATx02-16-14/Hastings/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DATx02-16-14/Hastings/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DATx02-16-14/Hastings/git/refs{/sha}","trees_url":"https://api.github.com/repos/DATx02-16-14/Hastings/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DATx02-16-14/Hastings/statuses/{sha}","languages_url":"https://api.github.com/repos/DATx02-16-14/Hastings/languages","stargazers_url":"https://api.github.com/repos/DATx02-16-14/Hastings/stargazers","contributors_url":"https://api.github.com/repos/DATx02-16-14/Hastings/contributors","subscribers_url":"https://api.github.com/repos/DATx02-16-14/Hastings/subscribers","subscription_url":"https://api.github.com/repos/DATx02-16-14/Hastings/subscription","commits_url":"https://api.github.com/repos/DATx02-16-14/Hastings/commits{/sha}","git_commits_url":"https://api.github.com/repos/DATx02-16-14/Hastings/git/commits{/sha}","comments_url":"https://api.github.com/repos/DATx02-16-14/Hastings/comments{/number}","issue_comment_url":"https://api.github.com/repos/DATx02-16-14/Hastings/issues/comments{/number}","contents_url":"https://api.github.com/repos/DATx02-16-14/Hastings/contents/{+path}","compare_url":"https://api.github.com/repos/DATx02-16-14/Hastings/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DATx02-16-14/Hastings/merges","archive_url":"https://api.github.com/repos/DATx02-16-14/Hastings/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DATx02-16-14/Hastings/downloads","issues_url":"https://api.github.com/repos/DATx02-16-14/Hastings/issues{/number}","pulls_url":"https://api.github.com/repos/DATx02-16-14/Hastings/pulls{/number}","milestones_url":"https://api.github.com/repos/DATx02-16-14/Hastings/milestones{/number}","notifications_url":"https://api.github.com/repos/DATx02-16-14/Hastings/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DATx02-16-14/Hastings/labels{/name}","releases_url":"https://api.github.com/repos/DATx02-16-14/Hastings/releases{/id}","deployments_url":"https://api.github.com/repos/DATx02-16-14/Hastings/deployments","created_at":"2016-02-01T15:29:29Z","updated_at":"2016-03-05T16:21:29Z","pushed_at":"2016-04-14T15:48:41Z","git_url":"git://github.com/DATx02-16-14/Hastings.git","ssh_url":"git@github.com:DATx02-16-14/Hastings.git","clone_url":"https://github.com/DATx02-16-14/Hastings.git","svn_url":"https://github.com/DATx02-16-14/Hastings","homepage":"","size":411,"stargazers_count":4,"watchers_count":4,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":33,"forks":0,"open_issues":33,"watchers":4,"default_branch":"development"}},"base":{"label":"DATx02-16-14:development","ref":"development","sha":"a94588824b3236e42541acaec057c77215409da3","user":{"login":"DATx02-16-14","id":17639706,"avatar_url":"https://avatars.githubusercontent.com/u/17639706?v=3","gravatar_id":"","url":"https://api.github.com/users/DATx02-16-14","html_url":"https://github.com/DATx02-16-14","followers_url":"https://api.github.com/users/DATx02-16-14/followers","following_url":"https://api.github.com/users/DATx02-16-14/following{/other_user}","gists_url":"https://api.github.com/users/DATx02-16-14/gists{/gist_id}","starred_url":"https://api.github.com/users/DATx02-16-14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DATx02-16-14/subscriptions","organizations_url":"https://api.github.com/users/DATx02-16-14/orgs","repos_url":"https://api.github.com/users/DATx02-16-14/repos","events_url":"https://api.github.com/users/DATx02-16-14/events{/privacy}","received_events_url":"https://api.github.com/users/DATx02-16-14/received_events","type":"Organization","site_admin":false},"repo":{"id":50848652,"name":"Hastings","full_name":"DATx02-16-14/Hastings","owner":{"login":"DATx02-16-14","id":17639706,"avatar_url":"https://avatars.githubusercontent.com/u/17639706?v=3","gravatar_id":"","url":"https://api.github.com/users/DATx02-16-14","html_url":"https://github.com/DATx02-16-14","followers_url":"https://api.github.com/users/DATx02-16-14/followers","following_url":"https://api.github.com/users/DATx02-16-14/following{/other_user}","gists_url":"https://api.github.com/users/DATx02-16-14/gists{/gist_id}","starred_url":"https://api.github.com/users/DATx02-16-14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DATx02-16-14/subscriptions","organizations_url":"https://api.github.com/users/DATx02-16-14/orgs","repos_url":"https://api.github.com/users/DATx02-16-14/repos","events_url":"https://api.github.com/users/DATx02-16-14/events{/privacy}","received_events_url":"https://api.github.com/users/DATx02-16-14/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DATx02-16-14/Hastings","description":"A project evaluating Haste.App and the suitability of Haskell for the web.","fork":false,"url":"https://api.github.com/repos/DATx02-16-14/Hastings","forks_url":"https://api.github.com/repos/DATx02-16-14/Hastings/forks","keys_url":"https://api.github.com/repos/DATx02-16-14/Hastings/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DATx02-16-14/Hastings/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DATx02-16-14/Hastings/teams","hooks_url":"https://api.github.com/repos/DATx02-16-14/Hastings/hooks","issue_events_url":"https://api.github.com/repos/DATx02-16-14/Hastings/issues/events{/number}","events_url":"https://api.github.com/repos/DATx02-16-14/Hastings/events","assignees_url":"https://api.github.com/repos/DATx02-16-14/Hastings/assignees{/user}","branches_url":"https://api.github.com/repos/DATx02-16-14/Hastings/branches{/branch}","tags_url":"https://api.github.com/repos/DATx02-16-14/Hastings/tags","blobs_url":"https://api.github.com/repos/DATx02-16-14/Hastings/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DATx02-16-14/Hastings/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DATx02-16-14/Hastings/git/refs{/sha}","trees_url":"https://api.github.com/repos/DATx02-16-14/Hastings/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DATx02-16-14/Hastings/statuses/{sha}","languages_url":"https://api.github.com/repos/DATx02-16-14/Hastings/languages","stargazers_url":"https://api.github.com/repos/DATx02-16-14/Hastings/stargazers","contributors_url":"https://api.github.com/repos/DATx02-16-14/Hastings/contributors","subscribers_url":"https://api.github.com/repos/DATx02-16-14/Hastings/subscribers","subscription_url":"https://api.github.com/repos/DATx02-16-14/Hastings/subscription","commits_url":"https://api.github.com/repos/DATx02-16-14/Hastings/commits{/sha}","git_commits_url":"https://api.github.com/repos/DATx02-16-14/Hastings/git/commits{/sha}","comments_url":"https://api.github.com/repos/DATx02-16-14/Hastings/comments{/number}","issue_comment_url":"https://api.github.com/repos/DATx02-16-14/Hastings/issues/comments{/number}","contents_url":"https://api.github.com/repos/DATx02-16-14/Hastings/contents/{+path}","compare_url":"https://api.github.com/repos/DATx02-16-14/Hastings/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DATx02-16-14/Hastings/merges","archive_url":"https://api.github.com/repos/DATx02-16-14/Hastings/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DATx02-16-14/Hastings/downloads","issues_url":"https://api.github.com/repos/DATx02-16-14/Hastings/issues{/number}","pulls_url":"https://api.github.com/repos/DATx02-16-14/Hastings/pulls{/number}","milestones_url":"https://api.github.com/repos/DATx02-16-14/Hastings/milestones{/number}","notifications_url":"https://api.github.com/repos/DATx02-16-14/Hastings/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DATx02-16-14/Hastings/labels{/name}","releases_url":"https://api.github.com/repos/DATx02-16-14/Hastings/releases{/id}","deployments_url":"https://api.github.com/repos/DATx02-16-14/Hastings/deployments","created_at":"2016-02-01T15:29:29Z","updated_at":"2016-03-05T16:21:29Z","pushed_at":"2016-04-14T15:48:41Z","git_url":"git://github.com/DATx02-16-14/Hastings.git","ssh_url":"git@github.com:DATx02-16-14/Hastings.git","clone_url":"https://github.com/DATx02-16-14/Hastings.git","svn_url":"https://github.com/DATx02-16-14/Hastings","homepage":"","size":411,"stargazers_count":4,"watchers_count":4,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":33,"forks":0,"open_issues":33,"watchers":4,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/DATx02-16-14/Hastings/pulls/91"},"html":{"href":"https://github.com/DATx02-16-14/Hastings/pull/91"},"issue":{"href":"https://api.github.com/repos/DATx02-16-14/Hastings/issues/91"},"comments":{"href":"https://api.github.com/repos/DATx02-16-14/Hastings/issues/91/comments"},"review_comments":{"href":"https://api.github.com/repos/DATx02-16-14/Hastings/pulls/91/comments"},"review_comment":{"href":"https://api.github.com/repos/DATx02-16-14/Hastings/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DATx02-16-14/Hastings/pulls/91/commits"},"statuses":{"href":"https://api.github.com/repos/DATx02-16-14/Hastings/statuses/9e609c7084338dabdcfc8fffd190b421e83b6194"}}}}