mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Parameterize program solving on a FunctionKind
This new flag determines whether we should introduce a new kind to represent lambda sets, or whether lambdas should be erased. The latter is not yet implemented.
This commit is contained in:
parent
60c98ea5d5
commit
44c4797d9a
29 changed files with 126 additions and 13 deletions
8
crates/compiler/solve/src/kinds.rs
Normal file
8
crates/compiler/solve/src/kinds.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
/// How function kinds should be represented in the type system.
|
||||
#[derive(Debug)]
|
||||
pub enum FunctionKind {
|
||||
/// Function values are solved to lambda sets; lambda sets are the kind.
|
||||
LambdaSet,
|
||||
/// Function values are erased, no kind is introduced.
|
||||
Erased,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue