Skip to content

Drop <= GHC 9.4, add GHC 9.14 - #38

Merged
martijnbastiaan merged 2 commits into
masterfrom
martijn/add-ghc914
Sep 2, 2026
Merged

Drop <= GHC 9.4, add GHC 9.14#38
martijnbastiaan merged 2 commits into
masterfrom
martijn/add-ghc914

Conversation

@martijnbastiaan

Copy link
Copy Markdown
Collaborator

No description provided.

martijnbastiaan and others added 2 commits September 2, 2026 11:21
The code has required GHC 9.6 since 0.2.0.0 (see 73f566c), but the
`base` lower bound still admitted much older compilers. Align it with
GHC 9.6's base-4.18 and note the dropped versions in the changelog.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GHC 9.14 changed a few AST details the plugin builds by hand:

* 'HsConDetails' lost its type-argument list. Introduce a 'PrefixConP'
  pattern synonym that hides the difference and use it for all prefix
  constructor patterns.
* The guarded right-hand sides of 'GRHSs' are now a 'NonEmpty' list.
  Introduce a 'SingleGRHS' pattern synonym for the single-alternative
  case the plugin generates and matches on.
* Multiplicity annotations were unified: 'HsNoMultAnn' became
  'HsUnannotated EpPatBind' for pattern bindings and
  'HsUnrestrictedArrow' became 'HsUnannotated (EpArrow noAnn)' for
  function arrows.
* 'thRdrNameGuesses' gained a list/tuple-pun flag, which is irrelevant for
  the fully qualified names 'thName' handles.

Until a Clash release supporting GHC 9.14 is on Hackage, cabal.project
pulls clash-prelude from the clash-compiler 'add-ghc914' branch when
building with GHC >= 9.14. Add 9.14.1 to tested-with and the CI matrix.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@martijnbastiaan
martijnbastiaan merged commit 7be3354 into master Sep 2, 2026
6 checks passed
@martijnbastiaan
martijnbastiaan deleted the martijn/add-ghc914 branch September 2, 2026 12:26
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.

2 participants