summaryrefslogtreecommitdiff
path: root/src/Erebos/Service.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2026-08-02 20:57:05 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2026-08-15 23:12:45 +0200
commit03c1f809b23d5ab1613ce5633acc9706469587c1 (patch)
tree979583b6734e57f6489860bd7932a79ca397b8be /src/Erebos/Service.hs
parentbaa678abb2d355779c3184b7302e1c00a0498829 (diff)
Make head caches available in service storage watchers
Diffstat (limited to 'src/Erebos/Service.hs')
-rw-r--r--src/Erebos/Service.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Erebos/Service.hs b/src/Erebos/Service.hs
index a5b1370..75551eb 100644
--- a/src/Erebos/Service.hs
+++ b/src/Erebos/Service.hs
@@ -109,7 +109,9 @@ someServiceEmptyGlobalState (SomeService p _) = SomeServiceGlobalState p (emptyS
data SomeStorageWatcher s
= forall a. Eq a => SomeStorageWatcher (Stored LocalState -> a) (a -> ServiceHandler s ())
+ | forall a. Eq a => SomeStorageWatcherHC (Stored LocalState -> HeadCacheType LocalState -> a) (a -> ServiceHandler s ())
| forall a. Eq a => GlobalStorageWatcher (Stored LocalState -> a) (Server -> a -> ExceptT ErebosError IO ())
+ | forall a. Eq a => GlobalStorageWatcherH (Head LocalState -> a) (Server -> a -> ExceptT ErebosError IO ())
mkServiceID :: String -> ServiceID