Skip to content

Commit

Permalink
deploy: afb5392
Browse files Browse the repository at this point in the history
  • Loading branch information
omelkonian committed Oct 3, 2024
1 parent 0b054f8 commit dc139c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _sources/features.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ five = (id :: Natural -> Natural) 5
(0-Quantity)=
## 0-Quantity Parameters

Parameters can be annotated with a _quantity_ of either `0` or `ω` (the default quantity is `ω` if no quantity is explicitly annotated). Such parameters are irrelevant to evaluation, so they are irrelevant to the compiled Haskell program, and so agda2hs erases them.
Parameters can be annotated with a _quantity_ of either `0` or `ω` (the default quantity is `ω` if no quantity is explicitly annotated). Parameters annotated with `0` are irrelevant to evaluation, so they are irrelevant to the compiled Haskell program, and so agda2hs erases them.

Agda:
```agda
Expand Down
2 changes: 1 addition & 1 deletion features.html
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ <h2>Explicit type singatures<a class="headerlink" href="#explicit-type-singature
</section>
<section id="quantity-parameters">
<span id="quantity"></span><h2>0-Quantity Parameters<a class="headerlink" href="#quantity-parameters" title="Permalink to this heading"></a></h2>
<p>Parameters can be annotated with a <em>quantity</em> of either <code class="docutils literal notranslate"><span class="pre">0</span></code> or <code class="docutils literal notranslate"><span class="pre">ω</span></code> (the default quantity is <code class="docutils literal notranslate"><span class="pre">ω</span></code> if no quantity is explicitly annotated). Such parameters are irrelevant to evaluation, so they are irrelevant to the compiled Haskell program, and so agda2hs erases them.</p>
<p>Parameters can be annotated with a <em>quantity</em> of either <code class="docutils literal notranslate"><span class="pre">0</span></code> or <code class="docutils literal notranslate"><span class="pre">ω</span></code> (the default quantity is <code class="docutils literal notranslate"><span class="pre">ω</span></code> if no quantity is explicitly annotated). Parameters annotated with <code class="docutils literal notranslate"><span class="pre">0</span></code> are irrelevant to evaluation, so they are irrelevant to the compiled Haskell program, and so agda2hs erases them.</p>
<p>Agda:</p>
<div class="highlight-agda notranslate"><div class="highlight"><pre><span></span><span class="kr">data</span><span class="w"> </span>GhostInt<span class="w"> </span><span class="ow">:</span><span class="w"> </span><span class="kt">Set</span><span class="w"> </span><span class="kr">where</span>
<span class="w"> </span><span class="nf">MakeGhostInt</span><span class="w"> </span><span class="ow">:</span><span class="w"> </span>@0<span class="w"> </span>Int<span class="w"> </span><span class="ow"></span><span class="w"> </span>GhostInt
Expand Down
Loading

0 comments on commit dc139c9

Please sign in to comment.