crucible: Make CrucibleType into type data
#1490
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
-XTypeDataenables the declaration of type-level datatypes without the need for-XDataKinds-style "promotion" from the value level to the type level.CrucibleTypeis only ever used at the type level, so it is a prime candidate for a declaration astype data. In fact, it was one of the use-cases for the GHC proposal introducing the extension! Practically speaking, this lets us reduce a bunch of duplication and boilerplate.This functionality was introduced in GHC 9.6, so using it explicitly drops support for GHC 9.4. This is in line with our versioning policy as described in
doc/dev.md, which states that we aim to support the three most recent versions of GHC at a time. We currently support GHC 9.6-9.10.See:
https://github.com/ghc-proposals/ghc-proposals/blob/3b4e702f217884cf1c2d9cfbd9cb22ad642b22b0/proposals/0106-type-data.rst https://downloads.haskell.org/ghc/9.6.1/docs/users_guide/9.6.1-notes.html