John J. Camilleri
e5a2aed5b6
Remove record fields not in lincat
...
Fixes #100 , #101
2021-07-01 11:47:14 +02:00
John J. Camilleri
13575b093f
Add top-level signatures and general code cleanup
2021-07-01 10:13:42 +02:00
John J. Camilleri
587004f985
Sort record fields in lin definitions
...
Fixes #102
2021-06-30 14:14:54 +02:00
John J. Camilleri
0a70eca6e2
Make GF.Grammar.Canonical.Id a type synonym for GF.Infra.Ident.RawIdent
...
This avoids a lot of conversion back and forth between Strings and ByteStrings
This commit was cherry-picked from d0c27cdaae (lpgf branch)
2021-06-30 10:58:23 +02:00
Inari Listenmaa
6efbd23c5c
Merge pull request #84 from ffrixslee/issue-46
...
Issue 46 (various deprecations during compilation of GF)
2021-06-29 23:48:00 +02:00
Andreas Källberg
2c37e7dfad
Fix build for ghc-7.10.3
2021-06-16 14:54:36 +08:00
Andreas Källberg
b1ed63b089
Don't print stack traces in Command.hs
...
They don't provide useful info anyways and they are needlessly verbose.
2021-06-16 14:26:22 +08:00
Inari Listenmaa
1a466c14c8
Don't print out the error msg for pattern matching unnecessarily
2021-01-20 01:15:28 +08:00
Liyana
76bec6d71e
Omitted import Except(..)
2020-11-12 09:48:15 +08:00
Liyana
2dc179239f
Replaced Control.Monad.Error with Control.Monad.Except
2020-11-10 17:32:43 +08:00
Liyana
9b02385e3e
Removed fromValue for boolV
2020-11-10 17:26:56 +08:00
Liyana
8ca4baf470
Deleted redundant pattern match
2020-11-10 17:15:20 +08:00
Liyana
1f7584bf98
Added explicit implementation for 'fromValue' in instance declaration for 'Predef Bool'
2020-11-10 17:14:31 +08:00
Liyana
33aad1b8de
Deleted redundant pattern match
2020-11-10 17:06:35 +08:00
Liyana
ac81b418d6
Added readJSON error messages
2020-11-10 16:57:33 +08:00
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
Andreas Källberg
f2e4b89a22
Fix syntax error problem for older versions of GHC
2020-10-08 17:41:44 +02:00
John J. Camilleri
ab52572f44
Fix bug where shell commands were ignored, introduced by #71
2020-09-18 09:25:08 +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
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
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
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
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
Inari Listenmaa
868566a319
Remove accidentally added space character in deriving clause.
2020-07-31 15:16:45 +02:00
Inari Listenmaa
aeabc955c8
Remove characters that aren't allowed in Haskell data types.
...
GF allows more characters in its types, as long as they are inside
single quotes. E.g. 'VP/Object' is a valid name for a GF category,
but not for a Haskell data type.
2020-07-31 15:05:46 +02:00
Inari Listenmaa
030c3bfee9
Add option "data" to Haskell options.
...
Imports Data.Data, all GF types derive Data, and uses DeriveDataTypeable.
2020-07-31 12:46:19 +02:00
aarneranta
8a052edca2
an attempt to solve record extension overloading bug, commented out for the moment
2020-07-06 18:01:59 +02:00
aarneranta
1360723137
fixed issue #67 on order of record fields in overloading
2020-07-06 14:27:49 +02:00
John J. Camilleri
63a3a57620
Remove duplicate --gfo flag
...
Fixes #51
2020-06-16 14:59:14 +02:00
Inari Listenmaa
de8cc02ba5
Condense the unsupported token gluing as per John's suggestion
2020-06-05 19:39:31 +02:00
Inari Listenmaa
dbc7297d80
Don't output "\n **" if helpfulMsg is empty.
2020-06-04 20:19:06 +02:00
Inari Listenmaa
414c2a1a5f
Add clarification to Internal error in GeneratePMCFG
2020-06-04 19:57:55 +02:00
Inari Listenmaa
dca1fcd7fe
Add clarification to Unsupported token gluing (both good and bad case)
2020-06-04 19:57:38 +02:00
Inari Listenmaa
c0714b7d33
Add clarification to "expected foo, inferred bar" type of error msgs
2020-06-04 19:57:10 +02:00
Inari Listenmaa
a4e3bce6bb
Add clarification to "Pattern is not linear" error msg.
2020-06-04 19:56:31 +02:00
Inari Listenmaa
9a903c166f
Add suggestions to error messages that are caused by too few/many args
2020-06-04 17:56:13 +02:00
krangelov
0a915199e8
allow literals in the C shell
2020-05-20 20:18:47 +02:00
krangelov
733fdac755
restore the sequence ordering after -optimize-pgf
2020-03-15 19:57:47 +01:00
krangelov
3133900125
another bug related to mattern matching on multiword expression
2020-02-18 15:07:47 +01:00
krangelov
e15392e579
fix: pattern matching on strings should reconstruct the tokens after matching
2020-02-17 19:29:36 +01:00
krangelov
9604a6309c
fix the compilation of case insensitive grammars
2020-02-17 12:40:14 +01:00
Thomas Hallgren
28f53e801a
PGFService: revert unlexing change in PGFService to restore &+ behaviour
2019-11-18 13:20:41 +01:00
krangelov
30eef61f0a
more dead code
2019-09-20 16:15:28 +02:00