File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1+ ## Unreleased
2+
3+ * Fixed a performance regression introduced in 0.8.0.0. [ Issue
4+ 1176] ( https://github.com/tweag/ormolu/issues/1176 ) .
5+
16## Ormolu 0.8.0.1
27
38* Correctly format edge cases where fully collapsing string gaps changes the
914 1166] ( https://github.com/tweag/ormolu/issues/1166 ) .
1015
1116* Make multiline function signatures in RequiredTypeArguments consistent with
12- types [ PR 1170] ( https://github.com/tweag/ormolu/pull/1170 )
17+ types [ PR 1170] ( https://github.com/tweag/ormolu/pull/1170 ) .
1318
1419* Correctly format single-line ` MultiWayIf ` s. [ Issue
1520 1171] ( https://github.com/tweag/ormolu/issues/1171 ) .
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ module Ormolu.Utils.IO
1010where
1111
1212import Control.Exception (catch , throwIO )
13- import Control.Monad (void )
1413import Control.Monad.IO.Class
1514import Data.IORef
1615import Data.Map.Lazy (Map )
@@ -67,5 +66,5 @@ withCache (Cache cacheVar) k action = do
6766 Just v -> pure v
6867 Nothing -> do
6968 v <- action
70- void $ atomicModifyIORef cacheVar (pure . M. insert k v)
69+ atomicModifyIORef cacheVar ((, () ) . M. insert k v)
7170 pure v
You can’t perform that action at this time.
0 commit comments