mirror of
https://github.com/github/semantic.git
synced 2024-12-22 06:11:49 +03:00
📝 MonadStore.
This commit is contained in:
parent
9390869304
commit
1a0c163145
@ -17,6 +17,7 @@ assign :: (Ord (LocationFor a), Semigroup (Cell (LocationFor a) a), Pointed (Cel
|
||||
assign = (modifyStore .) . storeInsert
|
||||
|
||||
|
||||
-- | 'Monad's offering a readable & writable 'Store' of values for specific 'Address'es.
|
||||
class Monad m => MonadStore a m where
|
||||
getStore :: m (Store (LocationFor a) a)
|
||||
putStore :: Store (LocationFor a) a -> m ()
|
||||
|
Loading…
Reference in New Issue
Block a user