mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-24 18:28:55 -06:00
Update transactions.md
This commit is contained in:
@@ -9,7 +9,7 @@ The database model of the runtime is specifically designed to be friendly toward
|
|||||||
main = do
|
main = do
|
||||||
gr <- readNGF "Example.ngf"
|
gr <- readNGF "Example.ngf"
|
||||||
functionType gr "f" >>= print
|
functionType gr "f" >>= print
|
||||||
<... modify the grammar gr ...>
|
-- modify the grammar gr
|
||||||
functionType gr "f" >>= print
|
functionType gr "f" >>= print
|
||||||
```
|
```
|
||||||
Here we ask for the type of a function before and after an arbitrary update in the grammar `gr`. Obviously if we allow that then `functionType` would have to be in the IO monad, e.g.:
|
Here we ask for the type of a function before and after an arbitrary update in the grammar `gr`. Obviously if we allow that then `functionType` would have to be in the IO monad, e.g.:
|
||||||
|
|||||||
Reference in New Issue
Block a user