diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2023-08-27 17:21:50 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2023-08-30 20:53:55 +0200 |
commit | 4c2e86ddd75f0e655fcb21aa8597dc71ce5330be (patch) | |
tree | 19af5664452cfd4a76f5fb2a5f3c2c999a30fe13 /src/State.hs | |
parent | b2278c50bfce8d8c6f80d04822ecedf42081659d (diff) |
Call refStorage only internally in Storage modules
Diffstat (limited to 'src/State.hs')
-rw-r--r-- | src/State.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/State.hs b/src/State.hs index afdddc8..12f9db9 100644 --- a/src/State.hs +++ b/src/State.hs @@ -94,7 +94,7 @@ updateLocalHead_ f = updateLocalHead (fmap (,()) . f) instance Monad m => MonadStorage (ReaderT (Head a) m) where - getStorage = asks $ refStorage . headRef + getStorage = asks $ headStorage instance (HeadType a, MonadIO m) => MonadHead a (ReaderT (Head a) m) where updateLocalHead f = do |