Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require building with th-desugar-1.17 #584

Merged
merged 1 commit into from
May 1, 2024
Merged

Conversation

RyanGlScott
Copy link
Collaborator

This bumps the th-desugar commit in the cabal.project file's source-repository-package to bring in the changes from th-desugar-1.17. Among other things, this version of th-desugar adds support for:

  • Namespace specifiers in fixity declarations
  • Embedded type expressions and patterns
  • Invisible type patterns

For now, singletons-th will error if it encounters any of these constructs. Where appropriate, I have opened issues to track the idea of supporting these language features in singletons-th:

This is one step towards preparing a GHC 9.10–compatible release of singletons and friends (see #569).

@RyanGlScott RyanGlScott mentioned this pull request May 1, 2024
4 tasks
This bumps the `th-desugar` commit in the `cabal.project` file's
`source-repository-package` to bring in the changes from `th-desugar-1.17`.
Among other things, this version of `th-desugar` adds support for:

* Namespace specifiers in fixity declarations
* Embedded type expressions and patterns
* Invisible type patterns

For now, `singletons-th` will error if it encounters any of these constructs.
Where appropriate, I have opened issues to track the idea of supporting these
language features in `singletons-th`:

* For namespace specifiers in fixity declarations, see
  #582.
* Supporting embedded type expressions and patterns seems quite difficult due to
  `singletons-th`'s policy of only promoting/singling vanilla type signatures
  (see the `README`), so I have not opened an issue for this.
* For invisible type patterns, see
  #583.

This is one step towards preparing a GHC 9.10–compatible release of
`singletons` and friends (see #569).
@RyanGlScott RyanGlScott merged commit 07852e9 into master May 1, 2024
24 checks passed
@RyanGlScott RyanGlScott deleted the th-desugar-1.17 branch May 1, 2024 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant