Rewrite bootstrap to sorta support type signatures
This commit is contained in:
parent
56e12252f5
commit
9d03c1425e
1 changed files with 9 additions and 0 deletions
|
@ -208,6 +208,15 @@ class Module(t.NamedTuple):
|
|||
|
||||
def __str__(self):
|
||||
b = []
|
||||
b.append("types:")
|
||||
for sig, type in self.types.items():
|
||||
b.append(f" {sig!r}:")
|
||||
b.append(f" name: {type.name}")
|
||||
b.append(f" typeconstraints: {type.typeconstraints}")
|
||||
b.append(f" arms:")
|
||||
for arm in type.constructors:
|
||||
b.append(f" - {arm}")
|
||||
|
||||
b.append("functions:")
|
||||
for sig, fun in self.functions.items():
|
||||
b.append(f" {sig!r}:")
|
||||
|
|
Loading…
Reference in a new issue