Andreas Källberg
1ff66006b8
Fix infinite recursion on error
...
The implementation was meant to lift from SIO to IO,
but instead it was just the identity function,
which means that `fail = id . fail` and we have an infinite loop.
2020-10-26 17:21:22 +01:00
John J. Camilleri
db5ee0b66a
Merge pull request #78 from anka-213/solve-syntax-error-bug
...
Fix syntax error problem for older versions of GHC
2020-10-09 11:56:21 +02:00
Andreas Källberg
7b4eeb368c
Make CI green
...
See https://github.com/joerick/cibuildwheel/issues/446
2020-10-08 21:50:12 +02:00
Andreas Källberg
f2e4b89a22
Fix syntax error problem for older versions of GHC
2020-10-08 17:41:44 +02:00
Inari Listenmaa
670a58e7e7
Merge pull request #77 from inariksit/tutorial-fixes
...
Minor tweaks and updates to the tutorial
2020-10-02 20:32:21 +02:00
krangelov
f3a8658cc1
Merge branch 'master' of https://github.com/GrammaticalFramework/gf-core
2020-10-02 19:55:24 +02:00
krangelov
bfb94d1e48
fix parsing with HOAS
2020-10-02 19:34:52 +02:00
Inari Listenmaa
df77205c43
(Tutorial) Rename TV (transitive verb) to V2, the name used in RGL
2020-10-02 17:58:57 +02:00
Inari Listenmaa
e41436eb14
(Tutorial) Remove reference to morpho_list + overly verbose path
2020-10-02 17:57:35 +02:00
Inari Listenmaa
2826061251
(Tutorial) Update the pre syntax
2020-10-02 17:56:24 +02:00
Inari Listenmaa
f56fbcf86e
(Tutorial) Remove mentions to pt -typecheck
...
The GF shell no longer has `put_tree -typecheck` option, and typechecking is done automatically when parsing.
The metavariable thing is a bit unclear: you don't get it when parsing "dim the light", or "switch on the fan, but you do get it when you `gt` after adding `switchOn` and `switchOff`.
```
> p "switch on the fan"
CAction fan (switchOff fan) (DKindOne fan)
> gt
CAction light dim (DKindOne light)
CAction ?3 (switchOff ?3) (DKindOne ?3)
CAction ?3 (switchOn ?3) (DKindOne ?3)
```
My hypothesis is that you don't get metavariable when parsing e.g. "dim the light", because even though `light` is suppressed in `CAction`, it still appears in `DKindOne`, so it gets to contribute to the whole tree with its string.
2020-09-29 09:23:36 +02:00
aarneranta
2c2bd158a6
link to CoLi paper, mention of iOS
2020-09-29 09:05:15 +02:00
John J. Camilleri
d95b3efd6b
Add instructions for uploading PGF2 to Hackage
2020-09-18 10:49:21 +02:00
John J. Camilleri
db8b111e72
Bump PGF2 to 1.2.1
2020-09-18 10:34:45 +02:00
John J. Camilleri
ab52572f44
Fix bug where shell commands were ignored, introduced by #71
2020-09-18 09:25:08 +02:00
John J. Camilleri
6c54e5b63c
Merge pull request #71 from anka-213/fix-newer-cabal
...
Fix support for newer stackage snapshots
2020-09-14 22:42:37 +02:00
Andreas Källberg
8bcdeedba0
Bump default stack.yaml to ghc8.6.5
2020-09-14 17:44:23 +02:00
Andreas Källberg
7d6a115cc1
Bump stackage snapshots to latest versions
2020-09-14 15:15:23 +02:00
Andreas Källberg
127a1b2842
Remove MonadFail requirements for aeson code
2020-09-12 11:04:32 +02:00
Andreas Källberg
2fd1040724
Fix incorrect type and update dependencies
2020-09-12 11:04:32 +02:00
Andreas Källberg
340f8d9b93
First attempt at github actions for stack
2020-09-12 10:55:18 +02:00
Andreas Källberg
9d8cd55cd5
Import orphan instances of MonadFail for ghc<8
...
Also upgrade alex/happy so automatic install works
2020-09-09 11:05:41 +02:00
Andreas Källberg
150b592aa9
Add stack file for ghc8.8.4
2020-09-08 15:10:29 +02:00
Andreas Källberg
56f94da772
Merge remote-tracking branch 'origin/master' into fix-newer-cabal
2020-09-05 21:11:12 +02:00
Andreas Källberg
57ce76dbc1
Add two more missing MonadFail imports
2020-09-05 20:57:30 +02:00
Andreas Källberg
2b23e0f27e
Fix wrong indent
2020-09-05 20:45:08 +02:00
Andreas Källberg
57c1014e9f
Update package database on ubuntu build
...
Fixes 404 error:
https://github.com/GrammaticalFramework/gf-core/runs/1076062405
2020-09-05 20:36:04 +02:00
Andreas Källberg
7268253f5a
MonadFail: Make backwards-compatible
2020-09-05 20:23:07 +02:00
Andreas Källberg
1234c715fc
Fix MonadFail for c-runtime as well
2020-09-05 18:57:40 +02:00
Inari Listenmaa
bca0691cb0
(Tutorial) Minor typofixes + current error message
2020-08-31 15:54:33 +02:00
Inari Listenmaa
3de9c664fd
Merge pull request #73 from inariksit/video-tutorial-page
...
(Homepage) Change link of video tutorials to a page + small fixes
2020-08-31 15:31:31 +02:00
Inari Listenmaa
f6560d309e
(Homepage) Change link of video tutorials to a page + small fixes
...
Also added video tutorial link to the footer.
2020-08-30 20:53:59 +02:00
Inari Listenmaa
254f03ecfe
Fix wording + formatting slightly
2020-08-30 20:38:49 +02:00
Inari Listenmaa
0bb02eeb51
Add a page for all GF video tutorials
2020-08-30 20:08:17 +02:00
Inari Listenmaa
bf21b4768c
(Tutorial) Fix to make calculator example compile
...
In abstract: startcat needs to be defined to run the commands that are shown later in the doc.
In concrete: ss and SS are defined in Prelude.
2020-08-21 13:25:16 +02:00
Andreas Källberg
47dbf9ac27
Add stack file for a more recent ghc
2020-08-19 14:13:17 +02:00
krangelov
90fc1d750e
remove the deprecated pgf_print_expr_tuple
2020-08-14 21:03:48 +02:00
krangelov
24beed9a95
Merge branch 'master' of https://github.com/GrammaticalFramework/gf-core
2020-08-14 20:56:20 +02:00
krangelov
23edeec5a9
added an API for cloning expressions/types/literals
2020-08-14 20:54:15 +02:00
Inari Listenmaa
542a41fb32
Merge pull request #70 from inariksit/haskell
...
New features in PGF to Haskell translation
2020-08-11 14:20:28 +02:00
Andreas Källberg
85ab6daaaa
Add cabal dist-newtyle to gitignore
2020-08-05 19:09:25 +02:00
Andreas Källberg
e351e7b79a
Remove NoMonadFailDesugaring flag
...
I've fixed so everything has the fail it needs now
2020-08-05 18:48:24 +02:00
Andreas Källberg
05903b271c
Fix testsuite compatability with newer Cabal
2020-08-05 18:48:24 +02:00
Andreas Källberg
3bd1f01959
Fix a few warnings
2020-08-05 18:48:24 +02:00
Andreas Källberg
0581d6827e
Fix most build errors
2020-08-05 18:48:24 +02:00
Andreas Källberg
b8812b54b2
fix newer ghc: Don't try to be backwards compatible
2020-08-05 18:48:24 +02:00
Andreas Källberg
251845f83e
First attempt at fixing incompabilities with newer cabal
2020-08-05 18:48:24 +02:00
Inari Listenmaa
7c478016d0
Replace deprecated pragma with up-to-date one. ( #17 )
2020-08-03 19:45:20 +02:00
John J. Camilleri
deddde953f
Add script for uploading PGF2 documentation to Hackage
...
Hackage's attempt to build the package will fail because of missing C libraries
2020-08-03 14:22:32 +02:00
John J. Camilleri
e10bb790cb
Merge pull request #69 from GrammaticalFramework/pgf2-hackage
...
Update pgf2 metadata for uploading to Hackage
Even though this isn't able to package the C runtime itself into the Haskell package, I think these changes are still worth merging into master.
2020-08-03 10:53:51 +02:00