From 479b63d8c30c0bc6e6475882d7fb573db5dad1f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sun, 17 Jul 2022 21:51:30 +0200 Subject: MonadStorage for context with Storage instance --- src/Test.hs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Test.hs') diff --git a/src/Test.hs b/src/Test.hs index 9c5319b..8bd34ea 100644 --- a/src/Test.hs +++ b/src/Test.hs @@ -167,6 +167,9 @@ instance MonadFail CommandM where instance MonadRandom CommandM where getRandomBytes = liftIO . getRandomBytes +instance MonadStorage CommandM where + getStorage = asks tiStorage + instance MonadHead LocalState CommandM where updateLocalHead f = do Just h <- gets tsHead -- cgit v1.2.3