diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2026-08-02 20:57:05 +0200 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2026-08-15 23:12:45 +0200 |
| commit | 03c1f809b23d5ab1613ce5633acc9706469587c1 (patch) | |
| tree | 979583b6734e57f6489860bd7932a79ca397b8be /src/Erebos/Service.hs | |
| parent | baa678abb2d355779c3184b7302e1c00a0498829 (diff) | |
Make head caches available in service storage watchers
Diffstat (limited to 'src/Erebos/Service.hs')
| -rw-r--r-- | src/Erebos/Service.hs | 2 |
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 |