Remove implicit arguments from TypsafeIntrV2.
This commit is contained in:
parent
fdaec6d5a9
commit
b078ef9a22
|
@ -18,15 +18,15 @@ boolStringImpossible : BoolType = StringType -> Void
|
||||||
boolStringImpossible Refl impossible
|
boolStringImpossible Refl impossible
|
||||||
|
|
||||||
decEq : (a : ExprType) -> (b : ExprType) -> Dec (a = b)
|
decEq : (a : ExprType) -> (b : ExprType) -> Dec (a = b)
|
||||||
decEq {a = IntType} {b = IntType} = Yes Refl
|
decEq IntType IntType = Yes Refl
|
||||||
decEq {a = BoolType} {b = BoolType} = Yes Refl
|
decEq BoolType BoolType = Yes Refl
|
||||||
decEq {a = StringType} {b = StringType} = Yes Refl
|
decEq StringType StringType = Yes Refl
|
||||||
decEq {a = IntType} {b = BoolType} = No intBoolImpossible
|
decEq IntType BoolType = No intBoolImpossible
|
||||||
decEq {a = BoolType} {b = IntType} = No $ intBoolImpossible . sym
|
decEq BoolType IntType = No $ intBoolImpossible . sym
|
||||||
decEq {a = IntType} {b = StringType} = No intStringImpossible
|
decEq IntType StringType = No intStringImpossible
|
||||||
decEq {a = StringType} {b = IntType} = No $ intStringImpossible . sym
|
decEq StringType IntType = No $ intStringImpossible . sym
|
||||||
decEq {a = BoolType} {b = StringType} = No boolStringImpossible
|
decEq BoolType StringType = No boolStringImpossible
|
||||||
decEq {a = StringType} {b = BoolType} = No $ boolStringImpossible . sym
|
decEq StringType BoolType = No $ boolStringImpossible . sym
|
||||||
|
|
||||||
data Op
|
data Op
|
||||||
= Add
|
= Add
|
||||||
|
|
Loading…
Reference in New Issue
Block a user