|
@ -291,11 +291,11 @@ function TypeApp(expression, type) { |
|
|
|
|
|
|
|
|
TypeApp.prototype = TypeExpression; |
|
|
TypeApp.prototype = TypeExpression; |
|
|
|
|
|
|
|
|
function DefType(rhs, lhs) { |
|
|
function DefType(lhs, rhs) { |
|
|
/* Both rhs and lhs are expected |
|
|
/* Both rhs and lhs are expected |
|
|
* to be fully desugared already |
|
|
* to be fully desugared already |
|
|
*/ |
|
|
*/ |
|
|
if (!isTypeExpr(rhs) || |
|
|
if (!isTypeExprRec(rhs) || |
|
|
!isTypeExpr(lhs)) { |
|
|
!isTypeExpr(lhs)) { |
|
|
throw errors.JSyntaxError( |
|
|
throw errors.JSyntaxError( |
|
|
rhs.linenum, |
|
|
rhs.linenum, |
|
@ -310,6 +310,12 @@ function DefType(rhs, lhs) { |
|
|
|
|
|
|
|
|
DefType.prototype = Expression; |
|
|
DefType.prototype = Expression; |
|
|
|
|
|
|
|
|
|
|
|
function DataType(params, type) { |
|
|
|
|
|
/* Params is a list of type variables |
|
|
|
|
|
* type is a type expression |
|
|
|
|
|
*/ |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Applies the function ``name'' to the list of parameters
|
|
|
//Applies the function ``name'' to the list of parameters
|
|
|
function makeApp(name, parameters) { |
|
|
function makeApp(name, parameters) { |
|
|