-
Would be lovely to have [GADTs](https://en.wikipedia.org/wiki/Generalized_algebraic_data_type)!
Eg.
```elm
type Expr : Type -> Type =
| Bool : Bool -> Expr Bool
| Int : Int …
-
This probably requires a new specialized annotation, but it would be really cool if adt4j could help to define GADTs in Java!
This is what I am after: https://gist.github.com/jbgi/208a1733f15cdcf78eb5…
-
-
| | |
|------------------|-----------------|
|Previous ID | SR-14045 |
|Radar | rdar://17539086 |
|Original Reporter | @…
-
Add support for GADTs
-
Common conventions for source code require line breaks every 80 characters. But doing so induces line breaks in the docstring which is not necessarily desired. E.g. in the source code
```
||| This…
-
Fathom currently has anonymous product types (records), but no (convenient) way of expressing sum types.
# Potential solutions
* Do nothing. Encode sum types as dependent records (eg `let Option :…
-
First, kudos for your new library!
As you probably know, patty consists of two macros: one to generate algebraic data types and the other one to do the actual pattern matching. Since you have gener…
-
Can support for GADT / ADT
-
Ordinary GADTs can be expressed by the combination of existentially bound type variables and constructors + type equality constraints. There is an alternative, described in section 4.3 of [1] and in …