{"action":"closed","issue":{"url":"https://api.github.com/repos/haskell-game/sdl2/issues/89","labels_url":"https://api.github.com/repos/haskell-game/sdl2/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/haskell-game/sdl2/issues/89/comments","events_url":"https://api.github.com/repos/haskell-game/sdl2/issues/89/events","html_url":"https://github.com/haskell-game/sdl2/issues/89","id":108334125,"number":89,"title":"Error in FromNumber instance of BlendMode","user":{"login":"seppeljordan","id":4805746,"avatar_url":"https://avatars.githubusercontent.com/u/4805746?v=3","gravatar_id":"","url":"https://api.github.com/users/seppeljordan","html_url":"https://github.com/seppeljordan","followers_url":"https://api.github.com/users/seppeljordan/followers","following_url":"https://api.github.com/users/seppeljordan/following{/other_user}","gists_url":"https://api.github.com/users/seppeljordan/gists{/gist_id}","starred_url":"https://api.github.com/users/seppeljordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seppeljordan/subscriptions","organizations_url":"https://api.github.com/users/seppeljordan/orgs","repos_url":"https://api.github.com/users/seppeljordan/repos","events_url":"https://api.github.com/users/seppeljordan/events{/privacy}","received_events_url":"https://api.github.com/users/seppeljordan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-25T14:10:29Z","updated_at":"2015-09-25T14:29:02Z","closed_at":"2015-09-25T14:29:02Z","body":"When you try to get the BlendMode of a texture that has BlendNone and then reassign it, you will crash your program with the following error message:\r\n\r\n```\r\ntest: fromNumber<BlendMode>: unknown blend mode: 0\r\n```\r\n\r\nThe problem is an error in the instance declaration of FromNum, where the pattern for SDL_BLENDMODE_NONE is not caught by the case expression.\r\n\r\nI will issue a pull request that will solve this problem and highlight what I mean.\r\n\r\nBTW: Thanks for the new API, you are great :)"}}