Commit Graph

82 Commits

Author SHA1 Message Date
Ari Fordsham
ed520491d4 Complete GHC 9 support and CI 2021-08-12 13:23:54 +01:00
Tristan Seligmann
48cbd70632 Support ghc-9.0 2021-08-12 13:10:22 +01:00
Greg Steuck
e1fdb0415f
Merge pull request #85 from blackgnezdo/update-ci
CI: use correct resolver version for ghc-8.10 configuration
2021-08-02 22:37:31 -07:00
Greg Steuck
1f75577114 Relax bounds of tasty to work for lts-18 2021-08-02 20:14:01 -07:00
Greg Steuck
54248b998a CI: use correct resolver version for ghc-8.10 configuration
Based on https://www.stackage.org/lts-18.5
2021-08-02 20:13:52 -07:00
Jinwoo Lee
bf22800465 up the version number to 0.4.1.0 2021-07-08 12:57:36 -07:00
Jinwoo Lee
d76a42880c
Update ChangeLog before releasing 0.4.1.0. (#83) 2021-07-08 12:49:07 -07:00
Greg Steuck
383ebfb01e
Merge pull request #81 from byteally/master
Add support for standaloneDeriving and its variants
2021-05-01 12:03:44 -07:00
Sreenidhi
cc5075b92b Remove unused import conditionally 2021-04-27 01:07:43 +05:30
Sreenidhi
f4476d9e61 Add standaloneDeriving 2021-04-27 00:34:29 +05:30
Sandy Maguire
bb6061cef4
Add funBindsWithFixity (#79) 2021-04-18 11:06:50 -07:00
Greg Steuck
756d4cdc82
Merge pull request #75 from felixonmars/patch-1
Allow tasty 1.3 and QuickCheck 2.14
2021-01-25 11:16:48 -08:00
Felix Yan
ba4efe6e6d
Allow tasty 1.3 and QuickCheck 2.14
All tests pass here with tasty 1.3.1 and QuickCheck 2.14.2.
2021-01-26 02:41:34 +08:00
Jinwoo Lee
8cd230230d
Merge pull request #72 from google/no-allow-newer
Remove `allow-newer: true` from the 8.10 config.
2020-06-02 08:59:06 -07:00
Judah Jacobson
36ad49cf7a Remove allow-newer: true from the 8.10 config.
It's not needed since all of these packages are already compatible with 8.10.
2020-06-01 22:26:34 -07:00
Jinwoo Lee
83c3ccf080
Merge pull request #71 from jinwoo/list-comprehension
Support list comprehensions.
2020-05-28 15:28:59 -07:00
Jinwoo Lee
9d275273e0 update ChangeLog 2020-05-28 13:35:01 -07:00
Jinwoo Lee
cf0bb23e53 Support list comprehensions.
Fixes #64.
2020-05-28 13:32:24 -07:00
Jinwoo Lee
cadf6060c3
Merge pull request #70 from jinwoo/arithseq
Support arithmetic sequences.
2020-05-28 12:33:00 -07:00
Jinwoo Lee
24d44d6557 fix for 8.4 2020-05-28 11:38:55 -07:00
Jinwoo Lee
6bc0965232 Support arithmetic sequences.
`from`      : [a .. ]
`fromThen`  : [a, b .. ]
`fromTo`    : [a .. b]
`fromThenTo`: [a, b .. c]

These are needed before supporting list comprehensions (#64).
2020-05-28 10:50:55 -07:00
Judah Jacobson
3aa49fff6f
Support ghc-8.10. (#69)
The biggest API change is that ghc-8.10 organizes its modules into
a hierarchy, such as `GHC.Hs.Expr` instead of `HsExpr`. To work
around that without adding even more CPP, I added some `other-modules`
providing the new names for older GHC releases.

Fixes #65 .
2020-05-22 11:07:15 -07:00
Judah Jacobson
2222198e23
Remove support for ghc-8.2.*. (#67)
ghc-8.4 was released than 2 years ago. This balances
some of the noise from the upcoming support for `ghc-8.10`.
2020-05-22 09:56:52 -07:00
Judah Jacobson
1b840b9d6a
Remove check.sh. (#68)
It's redundant to our CircleCI, and annoying to keep in sync. I think it's
easy enough to just pass flags to stack on the command-line such as
`--resolver=...`.

Co-authored-by: Judah Jacobson <judah@users.noreply.github.com>
2020-05-22 09:49:12 -07:00
Greg Steuck
eaed789cfe
Merge pull request #66 from google/15.13
Switch to lts-15.13.
2020-05-22 09:27:40 -07:00
Judah Jacobson
194578487e Switch to lts-15.13.
Previously we were building against a release candidate for ghc-8.8.
Now, we can just use a Stack LTS.

Also update the default in `stack.yaml`.
2020-05-22 06:12:40 -07:00
ersran9
079fb254db
promoted tuples (#62)
Also adds an internal `withPlaceHolders` combinator.
2020-02-04 07:36:48 -08:00
Judah Jacobson
766dbae97c
Add kindedVar and take type parameters as HsTyVarBndr'. (#61)
Previously functions like `class'` and `data'` took their
type variables as `OccNameStr` which let them be passed
as overloaded strings; for example, `data' "Maybe" ["a"] ...`.
Now, they take them as `HsTyVarBndr'`, the same as `forall'`,
and can be constructed with, for example,
`data' "Maybe" [bvar "a"] ...`.

This approach lets them be constructed with either `bvar` (for regular
variables) or `kindedVar` (for kind signatures).

Original patch by ersran9@.
2020-02-03 08:23:30 -08:00
Judah Jacobson
76214aa98f
Support {-# SOURCE #-} imports. (#58)
Also adds a unit test for this feature, and a TODO to add more tests
of `module'` and `import'`.
2020-01-03 11:20:50 -08:00
Judah Jacobson
cf79094cfe
Bump the version to 0.3.0.0. (#56) 2019-10-17 11:13:59 -07:00
Judah Jacobson
cf6eb5e260
Fix listPromotedTy on lists of one or zero elements. (#55)
We need the explicit `'` to distinguish from regular lists.
For simplicity, just use it for all type-level lists of
any length.
2019-10-17 11:01:35 -07:00
Judah Jacobson
5986388e5b
Add occNameToStr and nameToStr to convert from the GHC types. (#54)
Previously it was cumbersome to create an `OccNameStr` from an
`OccName` or a `Name`.

Fixes #53.
2019-09-02 23:18:06 -07:00
Judah Jacobson
f6dc875592
Bump upper bound to allow QuickCheck-2.13. (#51) 2019-08-31 18:42:21 -07:00
Judah Jacobson
9b47a06fda
Prepare for release: changelog and bounds (#50) 2019-08-31 17:02:48 -07:00
Judah Jacobson
95e07d6b15
Add conP_ (#49) 2019-08-31 16:32:41 -07:00
Judah Jacobson
1d350f8eaa
Various cleanups (#48) 2019-08-31 16:32:28 -07:00
Judah Jacobson
7b095be700
Use bvar in the readme. (#47) 2019-08-31 13:20:58 -07:00
Judah Jacobson
316e9c28bc
Use the BVar class for patterns and type variable bindings. (#46)
Also make data/newtype declaration type parameters be OccNameStr.
2019-08-31 10:38:36 -07:00
Judah Jacobson
dd074652a6
Export an entire module contents. (#45) 2019-08-31 07:17:06 -07:00
Judah Jacobson
18f8e8d2c2
Make tyPromotedVar pretty-print as 'Abc not Abc. (#44)
Also make it possible for unit tests to change behavior based on the
version of GHC.
2019-08-30 21:32:01 -07:00
Judah Jacobson
bed038cd28
Implement basic prefix pattern synonyms. (#43)
Progress on #28.  Still need several variants such as unidirectional,
explicit bididirectonal, records, and infix operators.
2019-08-30 20:40:17 -07:00
Judah Jacobson
b15ba9fbcf
Fix pretty-printing of rational literals. (#42)
Print them in double syntax, just like they're parsed.
Fixes #33.
2019-08-30 20:27:58 -07:00
Judah Jacobson
bfd43916b5
Make tyApp's precedence match -XTypeApplications. (#41)
The precedence with which GHC parses `@` in expressions changes
depending on whether `-XTypeApplications` is set.

In particular, `(var "f" @@ var "x") `tyApp` var "t"` should
render to `"f x @t"`.
2019-08-25 15:24:09 -07:00
Judah Jacobson
3af6da1152
Fix parentheses for tyApp. (#40) 2019-08-25 14:32:00 -07:00
Judah Jacobson
0b726749a2
Make ==> have the same precedence as --> (#39) 2019-08-25 13:24:27 -07:00
Judah Jacobson
15df48689e
Parenthesize let-expressions inside of do-expressions. (#38)
The following syntax is not valid, but can be generated by GHC;

```
do let ...
   in ...
```

It's not always a problem, if GHC manages to wrap it like

```
do let ... in ...
```

But for consistency, and since this ought to be an uncommon case,
always wrap `let`s in parentheses when they're inside of a `do` statement.
2019-08-25 10:26:40 -07:00
Judah Jacobson
b2a6ff551b
Parenthesize patterns in bindings on older GHC. (#37) 2019-08-25 10:05:49 -07:00
Judah Jacobson
92fad84066
Unit tests for recordConP (#36) 2019-08-25 09:47:19 -07:00
Judah Jacobson
3db45a3f33
sigP. Needs tests and thinking about parens. (#35) 2019-08-25 09:13:59 -07:00
Judah Jacobson
a792e98f49
Add parentheses in more cases. (#34)
- Op applied to argument
- patterns (for older GHCs)
2019-08-25 08:43:47 -07:00