mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-31 04:01:51 -07:00
Use deepseq instead of parallel
This commit is contained in:
@@ -94,7 +94,7 @@ modify f = put . f =<< get
|
||||
-- | Like @modify@ but the result value is applied strictly in respect to
|
||||
-- the monadic environment.
|
||||
modify' :: (ExtensionClass a, XLike m) => (a -> a) -> m ()
|
||||
modify' f = (\a -> let res = f a in res `seq` put res) =<< get
|
||||
modify' f = (put $!) . f =<< get
|
||||
|
||||
-- | Add a value to the extensible state field. A previously stored value with the same
|
||||
-- type will be overwritten. (More precisely: A value whose string representation of its type
|
||||
|
Reference in New Issue
Block a user