packages feed

dhall-docs-1.0.1: tasty/data/golden/JumpToRecordFieldWhenLetAnnotationPresentShouldIgnoreAnnotation.dhall.html

<!DOCTYPE HTML>
<html
  ><head
    ><title
    >/JumpToRecordFieldWhenLetAnnotationPresentShouldIgnoreAnnotation.dhall</title
    ><link href="index.css" type="text/css" rel="stylesheet"
    /><link href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&amp;family=Lato:ital,wght@0,400;0,700;1,400&amp;display=swap"
            type="text/css" rel="stylesheet"
    /><script src="index.js" type="text/javascript"
    /><meta charset="UTF-8"/></head
  ><body
    ><div class="nav-bar"
      ><img src="dhall-icon.svg" class="dhall-icon"
      /><p class="package-title"
      >test-package</p
      ><div class="nav-bar-content-divider"
      /><a id="switch-light-dark-mode" class="nav-option"
      >Switch Light/Dark Mode</a></div
    ><div class="main-container"
      ><h2 class="doc-title"
        ><span class="crumb-divider"
        >/</span
        ><a href="index.html"
        >test-package</a
        ><span class="crumb-divider"
        >/</span
        ><span href="index.html" class="title-crumb"
        >JumpToRecordFieldWhenLetAnnotationPresentShouldIgnoreAnnotation.dhall</span></h2
      ><a data-path="/JumpToRecordFieldWhenLetAnnotationPresentShouldIgnoreAnnotation.dhall"
          class="copy-to-clipboard"
        ><i
          ><small
          >Copy path to clipboard</small></i></a
      ><br
      /><div class="doc-contents"
        ><p
          >On this example, <code
          >dhall-docs</code
          > will detect that the variable <code
          >a</code
          > is annotated
with a type, but it will ignore it anyways. On let-bindings, <code
          >dhall-docs</code
          > infers
the type of the variable from the bounded expression. As a consequence, on
this example, hovering the <code
          >x</code
          > on the selector-expression will highlight the
<code
          >x</code> label on the record-literal</p>
</div
      ><h3
      >Source</h3
      ><div class="source-code"
        ><pre
          >{-|<br
          />On this example, `dhall-docs` will detect that the variable `a` is annotated<br
          />with a type, but it will ignore it anyways. On let-bindings, `dhall-docs` infers<br
          />the type of the variable from the bounded expression. As a consequence, on<br
          />this example, hovering the `x` on the selector-expression will highlight the<br
          />`x` label on the record-literal<br
          />-}<br
          />let <span data-name="var8-5" id="var8-5" class="name-decl"
          >a</span
          > : Bool = { <span data-name="var8-18" id="var8-18"
                             class="name-decl"
          >x</span
          > = &quot;foo&quot; }<br
          /><br
          />in <a href="#var8-5" data-name="var8-5" class="name-use"
          >a</a
          >.<a href="#var8-18" data-name="var8-18" class="name-use"
          >x</a
          ><br/></pre></div></div></body></html>