Compare commits
2 Commits
fd77fe078a
...
902ffc0bc0
Author | SHA1 | Date | |
---|---|---|---|
902ffc0bc0 | |||
8c1168d818 |
@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
#include <memory>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <set>
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include "type.hpp"
|
||||
|
||||
struct type_env;
|
||||
|
@ -103,4 +103,4 @@ In effect, they take zero arguments and produce types (themselves).
|
||||
3. A function from one type to another, like \\(\\text{List} \\; a \\rightarrow \\text{Int}\\).
|
||||
|
||||
Polytypes (type schemes) in our system can be all of the above, but may also include a "forall"
|
||||
quantifier at the front, generalizing the type (like \\(\\forall a \; . \; \\text{List} \; a \\rightarrow \\text{Int}\\)).
|
||||
quantifier at the front, generalizing the type (like \\(\\forall a \\; . \\; \\text{List} \\; a \\rightarrow \\text{Int}\\)).
|
||||
|
Loading…
Reference in New Issue
Block a user