summaryrefslogtreecommitdiff
path: root/src/State.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2023-08-27 17:21:50 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2023-08-30 20:53:55 +0200
commit4c2e86ddd75f0e655fcb21aa8597dc71ce5330be (patch)
tree19af5664452cfd4a76f5fb2a5f3c2c999a30fe13 /src/State.hs
parentb2278c50bfce8d8c6f80d04822ecedf42081659d (diff)
Call refStorage only internally in Storage modules
Diffstat (limited to 'src/State.hs')
-rw-r--r--src/State.hs2
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