mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-05 11:45:27 -07:00
Update transactions.md
This commit is contained in:
1 parent
3ee0d54878
commit
c843cec096
1 file changed
+1
-1
@@ -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.:
|
||||
|
||||
Reference in new issue
Block a user