idris专题提供idris的最新资讯内容,帮你更好的了解idris。
我想安装 idris 工具链,由于我已经安装并设置了 cabal,我尝试使用 <code>cabal install</code> 安装它 但
我有 <code>Vect</code> 的以下包装 <pre><code>data Foo : (r : Nat) -&gt; (t: Type) -&gt; Type where MkFoo : Vect r t -&gt; Fo
隐式转换在 Idris 2 中仍然可用吗?这个 Idris 1 代码 <pre><code>data Foo : Type -&gt; Type where MkFoo : t -&gt; Foo
我想使用在 where 子句的外部作用域中定义的值,就像这样 <pre><code>foo : Nat foo = case Just 1 of Nothing =&gt
现在我知道了,可以通过依赖类型来表达量词。所以我为此写了一个简单的实现“for all (a, b: N): exists (c:
假设我有一个操作员 <pre><code>infixl 9 @@ (@@) : Tensor [S n] t -&gt; Tensor (S n :: tail) t -&gt; Tensor tail t </code></p
为了尝试学习 Idris,我决定尝试使用它来实现红黑树。经过一番挣扎,我已经设法让树本身通过了类型
我是 Idris 的初学者。在 Idris2 0.3.0 版本中,我观察到了一个奇怪的行为。 为什么不检查此代码类型
Idris 2 没有 <a href="http://docs.idris-lang.org/en/latest/st/state.html" rel="nofollow noreferrer"><code>Control.ST</code></a>,只
<strong>Context</strong> 我正在尝试为 <code>++</code> 编写一个 <code>Vect</code> 版本,其中编译器可以推断生成的
<pre><code>data T = A String | B String p : ((A s) = (A s&#39;)) -&gt; (s = s&#39;) </code></pre> 如果我有 <code>(A s) = (A s&#39;)<
我要了 <pre><code>Uncaught error: INTERNAL ERROR: Can&#39;t make directory foo </code></pre> 尝试安装我的本地库时。
我正在使用 Idris2 从 TDD 和 idris book 中工作,在第 6 章我们编写了一个函数,该函数将动态数量的数字相
我正在使用 Idris2 跟踪 Idris 的 TDD。我在第 6 章中使用模式处理 DataStore。首先是一些上下文: <pre><code
我知道我可以将状态传递和状态 monad 用于纯粹的功能突变,但是 afaik 这不是就地的,我想要就地执行它
这是 Edwin 书中的一段 Idris 代码: <pre><code>data DataStore : Type where MkData : (size : Nat) -&gt; (items :
我使用的是 Idris 2 v0.3。我不明白为什么编译器在中找不到 <code>Gaussian</code> of <code>Distribution</code> 的
我很难为我的类型实现 <code>Applicative</code>。这是<code>Functor</code> <pre><code>data Connection : repr -&gt; out -&gt
Idris 具有非常简单的 <code>cong</code> 函数。 <pre><code>cong : {f : t -&gt; u} -&gt; a = b -&gt; f a = f b cong Refl = Ref
这可能是非常基本的依赖类型编程问题,但我找不到任何关于它的信息。问题是这样的:“我有一堆消