Cleaned the code again

This commit is contained in:
Ivy 2021-02-18 20:36:11 +01:00
parent 59fd2ce561
commit d1e7fa7956
1 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@
module Action where
import Graphics.Vty.Input
import Control.Applicative
import Data.Maybe
import Linear.V2
@ -25,4 +24,4 @@ bindings =
]
eventToAction :: Event -> Action
eventToAction e = fromJust $ lookup e bindings <|> Just None
eventToAction e = fromMaybe None (lookup e bindings)