0
我想編譯Idris中的interface
的簡單示例。Idris接口語法
interface Foo a where
foo : a -> String
但我不斷收到這種類型檢查錯誤:
error: expected: "with",
argument expression,
function right hand side,
implicit function argument,
with pattern
interface Foo a where
^
我相信它應該是邏輯上是相同Show
接口教程:http://docs.idris-lang.org/en/latest/tutorial/interfaces.html的語法是改變了嗎?或者哪裏可能是問題?
我正在使用Idris版本0.9.12。
它的工作原理與伊德里斯0.12.3。 –
升級修復它,謝謝。 – user1747134