summaryrefslogtreecommitdiff
path: root/src/Test.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Test.hs')
-rw-r--r--src/Test.hs3
1 files changed, 3 insertions, 0 deletions
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