1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-12 14:28:08 +03:00
juvix/test/Typecheck
Jan Mas Rovira 90200ab6de
General inductive parameters (#2506)
- Depends on #2481 

This pr allows inductive type parameters to be any type. Until now, they
had to be exactly `Type`. This allows us to define more general traits
such as the `Monad` and `Functor`, as shown in the new test.
This is only supported under the temporary `--new-typechecker` flag.

Pending work:

Update the positivity checker if necessary (@jonaprieto).
Update the necessary compilation steps in Core (@lukaszcz).
Add compilation tests.
2023-11-15 10:24:54 +01:00
..
Negative.hs Literal casting (#2457) 2023-11-03 10:01:03 +01:00
Positive.hs Interleave arity and typechecking (#2481) 2023-11-12 16:23:33 +01:00
PositiveNew.hs General inductive parameters (#2506) 2023-11-15 10:24:54 +01:00