Skip to content

Commit

Permalink
avoid redundant seq
Browse files Browse the repository at this point in the history
  • Loading branch information
frasertweedale authored and romanofski committed Mar 29, 2019
1 parent a085315 commit 1a2d5f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ data Keybinding (v :: ViewName) (ctx :: Name) = Keybinding
-- There is no 'NFData' instance for 'Vty.Event' and I don't want
-- to make an orphan instance for it.
instance NFData (Keybinding v ctx) where
rnf (Keybinding ev act) = Keybinding (ev `seq` ev) (force act) `seq` ()
rnf (Keybinding ev act) = Keybinding ev (force act) `seq` ()

instance Eq (Keybinding v ctx) where
(==) (Keybinding a _) (Keybinding b _) = a == b
Expand Down

0 comments on commit 1a2d5f5

Please sign in to comment.