1
0
forked from GitHub/gf-core

Update transactions.md

This commit is contained in:
Krasimir Angelov
2021-09-23 15:28:49 +02:00
committed by GitHub
parent 3ee0d54878
commit c843cec096

View File

@@ -9,7 +9,7 @@ The database model of the runtime is specifically designed to be friendly toward
main = do
gr <- readNGF "Example.ngf"
functionType gr "f" >>= print
<... modify the grammar gr ...>
-- modify the grammar gr
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.: