mirror of
https://github.com/github/semantic.git
synced 2024-12-22 06:11:49 +03:00
📝 uninitializedAddress.
This commit is contained in:
parent
475a7d79da
commit
f63d73e843
@ -62,5 +62,6 @@ instance (Alternative m, Monad m) => MonadAddress Monovariant m where
|
||||
alloc = pure . Address . Monovariant
|
||||
|
||||
|
||||
-- | Fail with a message denoting an uninitialized address (i.e. one which was 'alloc'ated, but never 'assign'ed a value before being 'deref'erenced).
|
||||
uninitializedAddress :: MonadFail m => m a
|
||||
uninitializedAddress = Control.Monad.Fail.fail "uninitialized address"
|
||||
|
Loading…
Reference in New Issue
Block a user