我foo
在下面的代码中得到了一个未解决的元变量:
namespace Funs
data Funs : Type -> Type where
Nil : Funs a
(::) : {b : Type} -> (a -> List b) -> Funs (List a) -> Funs (List a)
data FunPtr : Funs a -> Type -> Type where
here : FunPtr ((::) {b} _ bs) b
there : FunPtr bs b -> FunPtr (_ :: bs) b
total foo : FunPtr [] b -> Void
如何说服foo
没有有效模式可匹配的 Idris?
我试过添加
foo f = ?foo
然后在 Emacs 上进行案例拆分f
(只是为了看看可能会出现什么),但这只是删除了这条线,留下foo
了一个未解决的元数据。