mirror of
https://github.com/github/semantic.git
synced 2025-01-02 20:41:38 +03:00
Eta-expand the definition of assign.
This commit is contained in:
parent
0b59677368
commit
fdb2b2abde
@ -14,7 +14,7 @@ import Data.Pointed
|
||||
import Data.Semigroup
|
||||
|
||||
assign :: (Ord (LocationFor a), Semigroup (Cell (LocationFor a) a), Pointed (Cell (LocationFor a)), MonadStore a m) => Address (LocationFor a) a -> a -> m ()
|
||||
assign = (modifyStore .) . storeInsert
|
||||
assign address = modifyStore . storeInsert address
|
||||
|
||||
|
||||
-- | 'Monad's offering a readable & writable 'Store' of values for specific 'Address'es.
|
||||
|
Loading…
Reference in New Issue
Block a user