if-instance
GHC plugin to branch on whether a constraint is satisfied (by sheaf)
ghc-proposals
Proposed compiler and language changes for GHC and GHC/Haskell (by hsyl20)
if-instance | ghc-proposals | |
---|---|---|
4 | 1 | |
28 | 0 | |
- | - | |
3.6 | 0.0 | |
9 months ago | 7 months ago | |
Haskell | ||
- | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
if-instance
Posts with mentions or reviews of if-instance.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-09-08.
-
Branching on constraints (if-instance), applications
Sam Derbyshire has a cool type-checking plugin called if-instance that lets you branch on whether a constraint is satisfied with the following interface:
- Different `Num` instances based on availability of another instance.
-
How do I define this super-unsafe type class (not internally consistent at all 😱)
/u/presheaf has a more modern version using a GHC plugin: https://github.com/sheaf/if-instance
-
Quantified, overlapping type family equations
I just put up a library that allows branching on whether a constraint is satisfied, using a type-checking plugin. There's also a type-family IsSat, which works as in the OP. Let me know what you think!
ghc-proposals
Posts with mentions or reviews of ghc-proposals.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-09-08.
-
Branching on constraints (if-instance), applications
I had a few examples in my ghc-proposal: https://github.com/hsyl20/ghc-proposals/blob/constraint-to-bool/proposals/0000-constraint-to-bool.rst
What are some alternatives?
When comparing if-instance and ghc-proposals you can also consider the following projects:
ifcxt - constraint level if statements