diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2022-07-17 21:51:30 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2022-07-17 22:32:55 +0200 |
commit | 479b63d8c30c0bc6e6475882d7fb573db5dad1f9 (patch) | |
tree | af2ebc889628de1b7c8dfdb3ed64d5733ba00bb4 /src/Test.hs | |
parent | 36eb3a419ec9d0434f55456090e2845d4ac20b58 (diff) |
MonadStorage for context with Storage instance
Diffstat (limited to 'src/Test.hs')
-rw-r--r-- | src/Test.hs | 3 |
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 |