mirror of
https://github.com/github/semantic.git
synced 2024-12-21 22:01:46 +03:00
We don’t need Fresh here.
This commit is contained in:
parent
bb03cd9448
commit
3d5ee730ac
@ -80,7 +80,7 @@ instance Member Fresh effects => Addressable Precise effects where
|
||||
allocLoc _ = Precise <$> fresh
|
||||
|
||||
-- | 'Monovariant' locations 'alloc'ate one 'Address' per unique variable name, and 'deref'erence once per stored value, nondeterministically.
|
||||
instance Members '[Fresh, NonDet] effects => Addressable Monovariant effects where
|
||||
instance Member NonDet effects => Addressable Monovariant effects where
|
||||
derefCell _ cell | null cell = pure Nothing
|
||||
| otherwise = foldMapA (pure . Just) cell
|
||||
allocLoc = pure . Monovariant
|
||||
|
Loading…
Reference in New Issue
Block a user