packages feed

GLFW-task 0.1.0.1 → 0.2.0

raw patch · 2 files changed

+5/−5 lines, 2 filesdep ~transformersPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: transformers

API changes (from Hackage documentation)

- Graphics.UI.GLFW.Task: isButton :: MouseButton -> (MouseButton, KeyButtonState) -> Maybe KeyButtonState
+ Graphics.UI.GLFW.Task: isButton :: MouseButton -> MouseButton -> Maybe ()

Files

GLFW-task.cabal view
@@ -1,5 +1,5 @@ name:          GLFW-task-version:       0.1.0.1+version:       0.2.0 homepage:      http://github.com/ninegua/GLFW-task author:        Paul Liu  maintainer:    Paul Liu <paul@thev.net>@@ -27,7 +27,7 @@     OpenGL     >= 2.1   && < 3,     GLFW       == 0.5.*,     monad-task == 0.*,-    transformers < 4+    transformers < 0.4        exposed-modules:     Graphics.UI.GLFW.Task
Graphics/UI/GLFW/Task.hs view
@@ -73,9 +73,9 @@ isChar ch c | ch == c   = Just ()             | otherwise = Nothing -isButton :: MouseButton -> (MouseButton, KeyButtonState) -> Maybe KeyButtonState-isButton but (b, s) | b == but  = Just s-                    | otherwise = Nothing+isButton :: MouseButton -> MouseButton -> Maybe ()+isButton but b | b == but  = Just ()+               | otherwise = Nothing  isPress, isRelease :: (a, KeyButtonState) -> Maybe a isPress   (b, s) | s == Press   = Just b