mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
📝 getStore.
This commit is contained in:
parent
1a0c163145
commit
86b4e6ad6c
@ -19,6 +19,7 @@ assign = (modifyStore .) . storeInsert
|
|||||||
|
|
||||||
-- | 'Monad's offering a readable & writable 'Store' of values for specific 'Address'es.
|
-- | 'Monad's offering a readable & writable 'Store' of values for specific 'Address'es.
|
||||||
class Monad m => MonadStore a m where
|
class Monad m => MonadStore a m where
|
||||||
|
-- | Get the current store.
|
||||||
getStore :: m (Store (LocationFor a) a)
|
getStore :: m (Store (LocationFor a) a)
|
||||||
putStore :: Store (LocationFor a) a -> m ()
|
putStore :: Store (LocationFor a) a -> m ()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user