这个 Agda 错误是什么?
What is this Agda error?
我是第一次尝试 Agda,我已经定义了 Bool
数据类型及其基本函数,就像所有教程所说的那样:
data Bool : Set where
true : Bool
false : Bool
not : Bool -> Bool
not true = false
not false = true
etc...
当我尝试加载它时,它变得不安,因为 "more than one matching type signature for left hand side not true" 并且它以红色突出显示 "not true"。我做错了什么?
您需要缩进 Bool
的数据构造函数。
我是第一次尝试 Agda,我已经定义了 Bool
数据类型及其基本函数,就像所有教程所说的那样:
data Bool : Set where
true : Bool
false : Bool
not : Bool -> Bool
not true = false
not false = true
etc...
当我尝试加载它时,它变得不安,因为 "more than one matching type signature for left hand side not true" 并且它以红色突出显示 "not true"。我做错了什么?
您需要缩进 Bool
的数据构造函数。