Use deepseq instead of parallel

This commit is contained in:
Ruben Astudillo
2021-11-23 20:35:40 -03:00
parent 44fb597350
commit b75d0d265e
4 changed files with 20 additions and 19 deletions

View File

@@ -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