export a bit more
This commit is contained in:
parent
0896dfae4e
commit
1fe4085844
2 changed files with 6 additions and 2 deletions
|
|
@ -142,9 +142,9 @@ export const reduceUnification = (unif) => {
|
|||
};
|
||||
|
||||
// For debugging
|
||||
const prettyU = unif => {
|
||||
export const prettyU = unif => {
|
||||
return `{${[...unif].map(([symbol, types]) => `${getHumanReadableName(symbol)} => ${prettyST(types)}`).join(', ')}}`;
|
||||
};
|
||||
const prettyST = st => {
|
||||
export const prettyST = st => {
|
||||
return `(${st.keys().map(prettyT).join(',')})`;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue