mirror of
https://github.com/github/semantic.git
synced 2024-12-27 17:05:33 +03:00
Define a Domain effect.
This commit is contained in:
parent
bd8b21ebba
commit
5cbab3e8f9
@ -36,3 +36,13 @@ data Heap addr value m k
|
||||
= Deref addr (Maybe value -> m k)
|
||||
| Assign addr value (m k)
|
||||
deriving (Functor)
|
||||
|
||||
data Domain term name value m k
|
||||
= Abstract name (term name) (value -> m k)
|
||||
| Apply value value (value -> m k)
|
||||
| Unit
|
||||
| Bool Bool (value -> m k)
|
||||
| AsBool value (Bool -> m k)
|
||||
| String Text (value -> m k)
|
||||
| AsString value (Text -> m k)
|
||||
deriving (Functor)
|
||||
|
Loading…
Reference in New Issue
Block a user